Skip to main content
DevTools24

AES 加密/解密

使用基于密码密钥派生的 AES-256-GCM 加密和解密文本。所有处理都在您的浏览器中本地进行。

Use the same password for encryption and decryption

Security Details:
  • Algorithm: AES-256-GCM
  • Key Derivation: PBKDF2 with 100,000 iterations
  • Salt: 16 random bytes (stored with ciphertext)
  • IV: 12 random bytes (stored with ciphertext)
  • • All encryption happens locally in your browser

AES-256-GCM - 技术详情

AES-256-GCM 提供使用 256 位密钥的认证加密。PBKDF2 通过 100,000 次迭代从您的密码派生密钥。每次加密使用随机的 12 字节 IV 和 16 字节盐值以确保安全。

命令行替代方案

# OpenSSL AES encryption
openssl enc -aes-256-cbc -salt -pbkdf2 -in file.txt -out file.enc
openssl enc -d -aes-256-cbc -pbkdf2 -in file.enc -out file.txt

参考

查看官方规范