TOOLS / ENCRYPTION

RSA

Generate keys, encrypt, decrypt, sign and verify.

Uses the selected key size and padding. Examples contain test data only.

Key size

Public exponent: 65537. 1024-bit keys are for legacy tests.

Calculator reference

Verification evidence and limitations →

What it calculates

Generates RSA keys and performs encryption, decryption, signing and verification.

Inputs and methods

PEM keys; 1024/2048/4096-bit generation. OAEP, PKCS#1 v1.5 and raw encryption; SHA-256 signatures.

Worked example

Generate a 2048-bit pair. Encrypt ASCII Hello using OAEP SHA-256, then decrypt with the generated private key.

Recovered HEX: 48656C6C6F

Specification and limits

Keys and OAEP ciphertext are random; exact ciphertext changes. Encryption has modulus-dependent length limits. Raw RSA is provided for inspection.

RFC 8017 ↗