by CiPHPerCoder · 8y ago · 0 comments
Guidance from experts from a use case perspective is difficult to find, as documentation is always product centric.
Additionally, many members of the HN community have exposure they aren’t aware of. If you represent that you “encrypt” data, many organizations consider data that isn’t FIPS unencrypted. A password database compromise of your scrypt protected passwords may be a problem if you just accept boilerplate terms when selling a few licenses to state, local or federal customers.
FIPS-140-2: "Use AES"
So: aes_cbc_encrypt(crypto_secretbox(message, nonce, k1), iv, k2)