-
Notifications
You must be signed in to change notification settings - Fork 18
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
Scripts to paperbackup arbitrary input data with symmetric encryption #8
base: master
Are you sure you want to change the base?
Conversation
…files before passing them to papaerbackup. And another script to decode and decrypt resulting backups.
Thank you for working on paperbackup. Some observations about the patch:
Is this the same as on your machine? You could also check if gpg2 is available in the path and call it, if not fall back to calling gpg.
|
Thank you for feedback
I opted for this extra call to avoid wasting valuable bytes for "-----BEGIN PGP MESSAGE-----" and "-----END PGP MESSAGE-----" headers added by gpg --armor option. With information density this low it matters IMHO.
I used gpg because it was already installed on my Ubuntu 16.04 and has less dependencies then gpg2. Default AES symmetric algorithm was good enough for my use case. Anyone who specifically targets paper backup of my passwords stored in my home will probably apply rubber-hose cryptoanalysis to extract encryption key from me. So encryption strength does not matter much. I just don't want to store it in plain text in case the backup will find it's way to waste bin unshredded for some reason. But I agree that in general gpg2 would be better if it's available and I probably should also add option for encryption algorithm selection. I will do it on weekend.
I agree. Will fix
I agree. Your variant is better.
I'll investigate that. And add this option if possible in next commit.
I noticed that in paperrestore.sh you used "/bin/bash" and "/usr/bin/bash" in "paperbackup-verify.sh" I'll try to prepare next commit at next weekends. |
…for some reason (missing input file, etc.)
… portable one. Restored intra2net's shebang in paperbackup-verify.sh
…restore-symmetric.sh can write output data to stdout
Hope these changes address your concerns. Please let me know if you think something else should be changed or if I missed something. |
Thank you for adapting your patches to my suggestions. Everything looking good now except two small bits:
But on the other hand, the "-----BEGIN PGP MESSAGE-----" is implicit documentation how to decode it. Let's say in a decade or more, someone needs to decode the message, knows the password, but a lot of context around it is lost or outdated, github turned evil or was switched off, and so on. With the text "-----BEGIN PGP MESSAGE-----" in the plaintext section, he instantly know that he needs some pgp compatible program to decode this. The pure base64 doesn't convey this. |
Added script to do symmetric encryption and base64 encoding on input files before passing them to paperbackup.py. And another script to decode and decrypt resulting backups.