Skip to content
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

GPG encrypt exported archives #1287

Merged
merged 1 commit into from Jan 22, 2024
Merged

GPG encrypt exported archives #1287

merged 1 commit into from Jan 22, 2024

Conversation

nicksellen
Copy link
Member

@nicksellen nicksellen commented Jan 22, 2024

I am always uncomfortable when imaging how exported files of user data might be handled, so it feels responsible to GPG encrypt them with a strong password.

As it's a one-off export/import I made it using symmetric encryption mode (using AES256), and it generates a 60 character random password (passphrase...).

The idea is the person would transfer the file somehow, and transfer the password via a different means so they are not together, then the exported archive file is not readable by anyone without the password.

Default export filename is export.tar.xz.gpg and you can unpack the archive using standard tools, e.g.:

mkdir /tmp/unpacked
gpg -d export.tar.xz.gpg | tar -xJf - -C /tmp/unpacked

The tests cover the whole export/encryption/import, so all is good!

@nicksellen nicksellen merged commit c70bf67 into master Jan 22, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant