Security & Identity
RSA Encrypt & Sign
Local browser RSA and RSA2 tool for public-key encryption, private-key decryption (PKCS#1 v1.5 & OAEP with auto-chunking), RSA/RSA2 sign & verify, and 1024/2048/4096-bit PEM key generation and format conversion.
About this tool
Encrypt, decrypt, sign, verify, and generate RSA key pairs entirely inside your browser. Both PKCS#1 and PKCS#8 / SPKI PEM formats are detected automatically and can be converted between each other.
Payloads larger than a single RSA modulus block are automatically split into chunks and reassembled, supporting both PKCS#1 v1.5 (Java / OpenSSL compatible) and RSA-OAEP.
Best use cases
- Verify RSA public-key encryption and private-key decryption flows during API integration.
- Sign and verify payloads with RSA2 (SHA-256), SHA-1, SHA-384, or SHA-512 without uploading private keys.
- Generate 1024, 2048, or 4096-bit test key pairs locally and convert between PKCS#1 and PKCS#8 formats.
How to use it
- Switch between Encrypt / Decrypt, Sign & Verify, and Key Generator, or click Generate test keys for instant testing.
- Paste or import PEM public and private keys, then pick padding (PKCS#1 v1.5 / OAEP) or hash algorithm.
- Run the operation and copy or download the resulting ciphertext, signature, or .pem key files.
Scope and limits
- Supports 512–4096 bit RSA keys; key generation supports 1024, 2048, and 4096 bits.
- Single payload limit is 64 KB. Do not keep production private keys on shared machines.
- Passphrase-encrypted PEM private keys are not supported directly.
Data processing
All RSA key generation, encryption, decryption, and signing run locally in your browser. Keys and payloads are never uploaded.
FAQ
What is the difference between PKCS#1 and PKCS#8 / SPKI?
PKCS#1 uses BEGIN RSA PRIVATE KEY / RSA PUBLIC KEY headers (common in OpenSSL), while PKCS#8 / SPKI uses BEGIN PRIVATE KEY / PUBLIC KEY (common in Java and Web Crypto). This tool accepts both and converts between them.
How are long messages encrypted with RSA?
When plaintext exceeds a single block limit (e.g., 245 bytes for 2048-bit PKCS#1 v1.5), the tool splits the UTF-8 bytes into chunks, encrypts each block, and concatenates the output.
Are my private keys sent anywhere?
No. Everything runs locally in your browser using Web Crypto APIs and local BigInt modular arithmetic.