AES Encryption Tool

AES Encryption Knowledge

AES Algorithm Background

  • Replaced DES as new encryption standard in 2001
  • Rijndael algorithm selected through NIST competition
  • Federal Information Processing Standard FIPS 197

Common Application Scenarios

  • Government/military communications
  • Financial transaction protection
  • Enterprise sensitive document storage
  • SSL/TLS network transmission

Operation Modes

Mode Comparison

ModeIV RequiredParallelismError Propagation
CBCYesNoBlock-level
CTRCounterYesNone
GCMNonceYesAuthentication

Padding Modes

ModeStandardSchemeUse Cases
PKCS#7RFC 5652Pad with n bytes of value nGeneral data
ZeroPaddingIndustryPad with 0x00 bytesBinary data
ISO/IEC 7816-4ISO Standard0x80 followed by 0x00Smart card apps

Key Lengths

  • Standard: 128/192/256 bits
  • Selection Criteria:
    • 128-bit: Commercial applications
    • 256-bit: Government/military grade
  • Compliance: NIST SP 800-131A

Security Considerations

  1. IV Management:
  • CBC requires cryptographically secure random IV
  • CTR counters must never repeat
  1. Key Derivation:
  • Use PBKDF2-HMAC-SHA256
  • ≥10,000 iterations recommended
  1. Authentication:
  • Prefer GCM over CBC
  • Avoid ECB mode

References