cryptopasta
cryptopasta copied to clipboard
Implement NewKeyFromPassword
golang.org/x/crypto/scrypt
is the right approach, but it introduces some critical questions:
- N, r, and p need to be benchmarked on modern systems since the paper is from 2009.
- The paper, Go docs, and broader internet lack clear guidance on generation & management of scrypt salts.
Until these are resolved, the package should continue to advise random AES keys.
This post and its follow-up have some useful recent benchmarks of KDFs: https://pthree.org/2016/06/28/lets-talk-password-hashing/
Interesting benchmarks extensions