Skip to main content
SiteIndex
实用工具可以使用

AES 文本加密器

使用 AES-256-GCM 和口令派生密钥在本地加密和解密文本。明文和口令永不上传。

使用指南

交互式工具区

无需注册账号

AES-GCM text encryptor

Core processing uses browser APIs and locally loaded libraries, not an upload endpoint. Optional analytics and device or clipboard access are separate privacy considerations. Use synthetic data; browser processing is not a guarantee of confidentiality.

32 random bytes

Encrypt downloads a name.ext.encrypted.json envelope using the passphrase, key size, and cipher mode above. Decrypt expects an envelope file created by this tool and downloads the original file. Files are processed in your browser only and are never uploaded.

How it works

Everything runs in your browser with the Web Crypto API — text and files are never uploaded. Your passphrase is stretched with PBKDF2-HMAC-SHA-256 (100,000 iterations) and a random 16-byte salt, and a fresh random IV is generated for every encryption (12 bytes for GCM, 16 bytes for CBC and CTR), so encrypting the same text twice produces different output. The salt and IV are not secret: they travel with the ciphertext in the JSON envelope, or packed in front of it in the raw Base64/Hex formats (salt, then IV, then ciphertext).

AES-GCM is authenticated: a wrong passphrase or a single changed character makes decryption fail instead of returning garbage. AES-CBC (PKCS#7 padding) and AES-CTR are not authenticated, so prefer GCM unless you need another mode for compatibility. Raw formats are not self-describing — decrypting them needs the same cipher mode, key size, and format that were selected when encrypting.

AlgorithmKey sizeRoundsNotes
AES-12816 bytes10Fastest; still considered secure for everyday use.
AES-19224 bytes12Middle option; less commonly required by standards.
AES-25632 bytes14Common choice for long-lived secrets and compliance baselines.

All three key sizes are considered secure. In practice the passphrase is the weak point: a long, unique passphrase (or a generated key) matters far more than the jump from AES-128 to AES-256.

文本加密器是什么?

使用 AES-256-GCM 和口令派生密钥在本地加密和解密文本。明文和口令永不上传。

工作原理

使用 AES-256-GCM 和口令派生密钥在本地加密和解密文本。明文和口令永不上传。

常见用途

使用 AES-256-GCM 和口令派生密钥在本地加密和解密文本。明文和口令永不上传。

使用限制

结果可能因浏览器、网络、输入内容和外部服务而异。本工具仅供参考,不能替代专业诊断或建议。

常见问题
文本加密器是什么?
使用 AES-256-GCM 和口令派生密钥在本地加密和解密文本。明文和口令永不上传。

相关工具