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ビット鍵による認証付き暗号化を提供します。100,000回の反復を持つPBKDF2がパスワードから鍵を導出します。各暗号化はセキュリティのためにランダムな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

参照

公式仕様を見る