3 ms·
To take a concrete example of encryption using a key derived from a passphrase: SSH keys. OpenSSH uses MD5 as a key derivation function, so if someone steals a
by cperciva 13y ago
To take a concrete example of encryption using a key derived from a passphrase: SSH keys. OpenSSH uses MD5 as a key derivation function, so if someone steals a passphrased SSH key file you'd better hope that the passphrase is very strong.
- keeperofdakeys 13y agoUsing a KDF such as scrypt for that example does make a lot of sense, and after considering some others, I must admit, makes a lot of sense for most circumstances. I also had a quick look at the tarsnap source code, and I see you do exactly that for the passphrased keyfile.
- cperciva 13y agoYes -- in fact, that's why I invented scrypt, because I was adding passphrase encryption to tarsnap key files and wanted to do it as securely as possible.
- croikle 13y agoNote that it's possible to convert your keys to use PBKDF2: http://martin.kleppmann.com/2013/05/24/improving-security-of-ssh-private-keys.html http://martin.kleppmann.com/2013/05/24/improving-security-of...