Using AES and Password-Based Key Deriva/on
The recommended standard to encrypt data with a given key is the
AES (Advanced
Encryption Standard)
. In this example, you’ll use the same key to encrypt and
decrypt data - known as symmetric encryption. The preferred length of the key is 256
bits for sensitive data.
It’s not realistic to rely on the user to select a strong or unique password, that’s why
it’s never recommended to use passwords directly to encrypt the data. Instead,
produce a key based on the user’s password using
Do'stlaringiz bilan baham: |