-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hashing a password is not an acceptable way to create a crypto key from a password. Use something like scrypt. Generate a random salt for the encrypt operation to use in scrypt and store it with the ciphertext (along with the IV, payload)
ehochx adds this in a reddit comment:
Don't hash the password, generate a random salt and use a proper KDF
Password hashing, WebCrypto has PBKDF2 which is more suitable.