LiteConv

/

RSA Toolkit

Generate keys and encrypt or decrypt with RSA.

For normal RSA encryption, use the public key to encrypt and the matching private key to decrypt. The selected padding algorithm must match on both sides.

RSA Encryption

RSA Decryption

Generate RSA key pair

Test a public/private key pair with a short message

Worked example

Generate a test key pair, preferably at least 2048 bits, and keep the private PEM separate. Encrypt a short sample with the public key and decrypt with the matching private key using the same padding settings. A different key or padding cannot recover the message.

What to check

RSA encryption has a strict message-length limit based on key size and padding; it is not for whole documents. Prefer OAEP for modern encryption where supported. Real systems generally encrypt data with a symmetric key and use RSA to protect that key. Never use a demonstration private key in production.