RSA 工具

密钥对、加密、解密

100% 本地处理 — 数据不会上传
1 · Key pair
Generate a key pair, or paste existing keys below.
2 · Encrypt
Ciphertext (Base64)
—
3 · Decrypt
Plaintext
—
RSA-OAEP with SHA-256. Keys are generated and used entirely in your browser (Web Crypto API). Ciphertext size equals the key size; OAEP limits plaintext to 190 bytes with this key — encrypt a random AES key for larger data.

使用方法

  1. 生成密钥对(或粘贴已有的私钥)。
  2. 用公钥加密文本。
  3. 用私钥解密。

常见问题

支持哪些编码?

密钥以 PEM(PKCS#8 / SPKI)格式导入导出;密文为 Base64。

能在其他地方解密吗?

可以 — 标准 RSA-OAEP + SHA-256 与 OpenSSL 等工具互操作。