文本解密
什么是文本解密?
文本解密是将加密(密文)转换回其原始可读形式(明文)的过程。这需要正确的解密密钥和算法。
Supported Algorithms:
Symmetric Decryption (AES):
- AES-GCM (Recommended): Provides authenticated encryption with associated data (AEAD). Most secure for general use.
- AES-CBC: Traditional block cipher mode. Requires padding.
- AES-CTR: Counter mode. Converts block cipher to stream cipher.
Asymmetric Decryption (RSA):
- RSA-OAEP: Uses private key for decryption. Requires the corresponding private key to the public key used for encryption.
Expected Input Format:
For AES algorithms: JSON with base64-encoded components
{"iv": "base64_encoded_iv", "data": "base64_encoded_ciphertext"}
Also supports legacy hex format:
{"iv": "hex_encoded_iv", "data": "hex_encoded_ciphertext"}
For RSA: Base64-encoded ciphertext only
base64_encoded_ciphertext
如何使用文本解密工具
-
将加密文本粘贴到输入框中。
-
选择加密期间使用的算法。
-
输入解密密钥。
-
对于 RSA:以 PEM 格式粘贴您的私钥。
-
点击“解密”按钮即可查看原始文本。
-
使用眼睛图标显示/隐藏您的密钥以确保安全。
Additional Tips:
- For AES: Use the same secret key that was used for encryption
- For RSA: You need the private key corresponding to the public key used for encryption
- Automatic format detection: The tool automatically detects base64 or hex encoding
- Error handling: If decryption fails, check that you're using the correct algorithm and key
安全注意事项
此工具使用 Web Crypto API,完全在您的浏览器中运行。您的密钥和数据永远不会被发送到任何服务器。确保处理敏感数据时使用强密钥。
Important Notes:
- All decryption happens locally in your browser using the Web Crypto API
- Your private keys and secrets never leave your browser
- For RSA decryption, you decrypt with a private key; the data was encrypted with the corresponding public key
- Keep your private keys and secret keys secure - they are the only way to decrypt your data
- The tool supports both base64 (standard) and hex (legacy) encoding formats
这个免费的在线文本解密工具快速、安全,完全在您的浏览器中运行。所有解密均使用Web Crypto API在本地执行-不会将数据发送到任何服务器。非常适合开发人员、安全专业人员以及需要解密使用AES或RSA算法加密的文本数据的任何人。
常见问题
在这里解码敏感数据是否安全? 是的。所有解码都在您的浏览器中使用JavaScript进行。没有数据被传输到任何服务器,因此您的编码字符串完全保持私密。
Base64和URL安全Base64之间的区别是什么? 标准Base64使用+和/字符,这些是URL中的特殊字符。URL安全Base64将其替换为-和_,这样字符串可以在URL和文件名中安全使用,无需进行百分比编码。
为什么我解码的输出看起来像乱码? 如果原始数据是二进制文件(如图像、PDF或压缩文件),解码的输出将不是可读文本。在这种情况下,Base64字符串代表二进制文件,而不是文本字符串。
Base64是一种加密形式吗? 不是。Base64是编码方案,不是加密。任何人都可以在没有密钥的情况下解码Base64字符串。它不应该用于保护敏感数据——应使用适当的加密。
Keywords: 文本解密在线, AES解密,解密文本, AES-GCM , AES-CBC , AES-CTR , RSA-OAEP ,安全文本解密,免费解密工具, Web Crypto API解密,客户端解密