跳到主要内容
uencoder

AES 加密器

使用 Web Crypto API 以 AES(CBC/GCM/ECB)加密文本或二进制数据。免费、隐私优先、100% 纯客户端运行。

Local only

最近历史

暂无历史

使用方法

  1. 输入要加密的明文。
  2. 提供密钥和 IV(用于 CBC/GCM)。
  3. 选择模式、密钥长度和输出格式。
  4. 复制或下载密文。

使用此工具的任务

比较 block ciphers and stream ciphers
阻止 ciphers 加密固定-大小 blocks 具有 padding; 流式处理 ciphers 加密字节-通过-字节. Understand 权衡在 速度, padding, 和错误 propagation.
任务
Derive cryptographic 键从 password using KDF
Turn human-memorable password 为固定-长度键 suitable 为 AES 或 HMAC using PBKDF2, scrypt, 或 bcrypt 具有 salt.
任务
加密 text with AES and decrypt it back
Symmetrically 加密消息具有 passphrase using AES-256-GCM, 然后解密 ciphertext 具有相同键 到 recover 原始.
任务
加密 a large file with AES in chunks
加密 files too large for a single AES operation by processing them in chunks with a streaming mode, then decrypt to recover.
任务
加密 data with the Camellia block cipher
Camellia 是 128-位阻止 cipher co-developed 通过 Mitsubishi 和 NTT, certified as NESSIE 和 CRYPTREC recommended primitive. Learn 其 usage 和 comparison 具有 AES.
任务
加密 data with the ChaCha20 stream cipher
ChaCha20 是高-速度 ARX-based 流式处理 cipher designed 通过 Daniel J. Bernstein, used 在 TLS 和 as mobile-friendly alternative 到 AES.
任务
加密 data with the Twofish block cipher
Twofish 是 128-位 Feistel-网络阻止 cipher 和 AES competition finalist 具有关键上 到 256 bits. Learn 加密 workflow 和当 到选择它 遍历 AES.
任务
生成 cryptographic nonces correctly
nonce (数字 used 一次) 必须是 唯一 per 加密在 相同键. Learn 当到 use random vs counter nonces 和 consequences 的 reuse.
任务
生成 cryptographically secure session keys
会话关键必须是 unpredictable 和唯一 per 会话. Learn 到生成它们 using CSPRNG 和 derive sub-keys 具有 HKDF.
任务
Implement end-to-end 加密 (E2EE)
End-to-end 加密 ensures 仅 communicating parties 能够读取 messages — 否 intermediary 服务器 holds 解密关键. Learn hybrid 加密模式.
任务
Rotate 加密关键安全
键 rotation limits blast 半径的 compromised 键. Learn 双-加密 migration 模式和 如何re-加密数据无 downtime.
任务
安全 wipe sensitive 数据从 内存
Cryptographic 关键和 plaintext 必须是 zeroed 从内存之后 use. Learn 为什么 memset 是不 enough 和如何prevent compiler 优化.
任务
Store 加密关键安全
关键必须从不是 hardcoded 或 committed 到源 control. Learn HSM, KMS, envelope 加密, 和键 derivation patterns 为安全键 storage.
任务
Use AES 在 CTR 模式 as 流式处理 cipher
AES-CTR turns 阻止 cipher 为 keystream generator, eliminating padding. Learn 正确 counter 管理和 为什么你 必须添加认证 separately.
任务
Use AES 在 GCM 模式为 已认证加密
AES-GCM provides 两者保密性和 完整性在 单个操作, detecting tampering 无 separate HMAC. 它是 recommended AES 模式为 最多 applications.
任务
Understand 和 use 流式处理 ciphers 正确
流式处理 ciphers 加密字节-通过-字节 using keystream, offering 速度和 否 padding. Learn 正确 nonce handling 和 fatal mistake 的 nonce reuse.
任务

使用此工具的管道

常见问题

应该使用哪种 AES 模式?
推荐 GCM,它提供认证加密。CBC 兼容性广泛。ECB 不推荐,因为它不使用 IV。
我的数据会被上传到任何地方吗?
不会。所有加密均在你的浏览器中使用 Web Crypto API 本地完成。

相关工具