-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yadm encrypt between different gpg versions #330
Comments
Update:
I would still love any advice for this. I can take a crack at a patch, if there's a way to improve this within yadm. |
@jacktose - The I'm not sure of a great way to handle this situation (and others like it) other than to modify the yadm "encrypt" and "decrypt" commands to accept some custom switches for the encryption software itself (both gpg & openssl). yadm already uses the arrays GPG_OPTS & OPENSSL_OPTS internally for encryption (and encryption in the case of openssl). Perhaps these commands could accept additional options, which are placed after the standard ones used. |
This issue has been labeled as stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This question is about
Describe your question
I'm running yadm on various machines (as one does), with rather old and rather new versions of
gpg
. If Iyadm encrypt
with the old one, it defaults to the CAST5 algorithm w/o MDC, and if Iyadm decrypt
with the new one, it refuses to decrypt because of the missing MDC.Here's an example (with some less-relevant output omitted):
yadm encrypt
with oldergpg
:yadm decrypt
with newergpg
:How can I make these machines interoperate? Here are some possibilities I've considered, but I know barely enough about encryption & gpg to be dangerous, so I'd be grateful for some advice:
gpg
on the old host. I'd really rather not.yadm.cipher=openssl
. I'd rather stay as close as possible to defaults. And I'm curious about making this work with gpg..gnupg/gpg.conf
, I could setforce-mdc
,personal-cipher-preferences AES256
, orcipher-algo AES256
on the old host, and probably make an encrypted file that the new version would accept. But I don't know what landmines I might be stepping on for all other uses of gpg.ignore-mdc-error
on the new host. Seems less secure.Thanks for any advice!
The text was updated successfully, but these errors were encountered: