RSA Suite

No Primary Key

Generate or import a key pair to get started

Generate Key Pair
Generating replaces the current primary key (confirmation required if one exists)
Import Key or Key Pair…
Paste PEM or upload file · Auto-detects key type · Requires a name
Saved Key Pairs
Saved Public Keys
Encrypt
🔐 Hybrid: AES-256-GCM + RSA-OAEP. Unlimited length.
Ciphertext

Ciphertext will appear here

Decrypt
Plaintext

Decrypted text will appear here

Hash Input
Hash Values
MD5
Waiting for input...
SHA-1
Waiting for input...
SHA-256
Waiting for input...
SHA-384
Waiting for input...
SHA-512
Waiting for input...
Sign Input
Signature

Signature will appear here

Verify Input
Drop .sig here
Drag & drop .sig · paste · or upload ↑
Verification Result

Result will appear after verification

密码学学习路径

先理解两种加密,再看它们如何协作

每一章都按“直观类比 → 数据流程 → 动手演练”展开。建议依次学习 RSA、AES 和混合加密;也可以直接选择你想了解的主题。

01 RSA:安全交换秘密 02 AES:高效保护数据 03 混合加密:组合落地
第 1 章 · 非对称加密

RSA:公开一把锁,保留唯一钥匙

RSA 使用成对的公钥和私钥:公钥可以公开给任何人,私钥只由接收方保存。它适合保护短数据、交换密钥和验证身份。

核心优势:无需预先共享密钥 常见用途:密钥封装、数字签名 注意:不直接加密大文件
通俗理解
把公钥想成一只能投不能取的公开信箱:任何人都能把秘密放进去,只有持有私钥的收件人才能打开。RSA 的代价是计算较慢,因此工程中通常只让它保护一小段关键数据,例如 AES 会话密钥。
选择明文 M
公钥加密 (M^e mod n)
密文 C
私钥解密 (C^d mod n)
还原明文 M

第一步:设置初始密码参数(要求:p、q 为两个不相等的质数,且都是 2~3 位数字,即 10~999 之间)

请输入合法的参数或点击自动生成。