Add option to password-protect the encryption key #11
lomigmegard
started this conversation in
Ideas
Replies: 2 comments
-
Would it be a problem to use a hash of the password as the KEK? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@j-l-m In the case of passwords, not all hash functions are good candidates, and a password-based KDF is advised. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An interesting optional feature would be to protect the encryption key using a password. The recipient would have to enter the password on the web page, the decryption still fully client-side.
It could be done using derivation directly, stretching the password to derive the encryption key. But that would undermine the encryption security, making the cyphertext as weak/strong as the password. Another approach is to derive a KEK from the password, wrapping the fully random encryption key. This way the cyphertext is not impacted, and the security level of the password is kept client-side.
Beta Was this translation helpful? Give feedback.
All reactions