Security & CryptoLesson 338Free preview
AES Encrypt / Decrypt
This lesson is part of Web Developer Tools · All levels
Summary
AES is a symmetric encryption algorithm that uses a single key to lock and unlock data. The AES Encrypt/Decrypt tool helps to see how plaintext changes to ciphertext and returns again with the same key. For security, use authenticated modes such as GCM, IV or nonce that are unique, as well as the correctly generated keys.
Key points
- AES is a symmetrical block cipher with a 128 bit block.
- The key sizes supported are 128, 192 and 256 bits.
- GCM mode provides confidentiality as well as data authentication
- IV or nonce should not be reused in certain modes such as GCM
- The user password should be processed with a KDF such as PBKDF2 or Argon2 before it becomes a key.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.