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

Password protected secret key #3

Open
kyrias opened this issue Mar 5, 2017 · 0 comments
Open

Password protected secret key #3

kyrias opened this issue Mar 5, 2017 · 0 comments

Comments

@kyrias
Copy link
Owner

kyrias commented Mar 5, 2017

Before writing the secret encryption key to disk we should use sodiumoxide::crypto::pwhash to derive an encryption key from a password.

This does also bring the question of how to pass in the password: (non-exhaustive list)

  • As a command-line argument
  • Just passing it on stdin
  • Prompt using a curses-like window
  • pinentry (sometimes gets into weird finicky states with gpg. might be a gpg bug though.)
  • or maybe support all of them?

And now I'm also thinking about looking into storing the secret key using libsecret (gnome-keyring/kwallet), so we don't have to take care of the password protection ourselves at all, hm.

@kyrias kyrias changed the title Password protected private key Password protected secret key Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant