Encrypt and decrypt messages locally using secure RSA-OAEP asymmetric cryptography.
RSA Public Key
RSA Private Key
RSA-OAEP message size limit: RSA can only encrypt small messages. Maximum plaintext size = key size in bytes - 66 bytes for SHA-256. For a 2048-bit key, that is ~190 bytes. For larger data, use AES hybrid encryption — encrypt the data with AES and encrypt only the AES key with RSA.
RSA-OAEP (Optimal Asymmetric Encryption Padding) is a secure mode of RSA encryption. Unlike raw RSA, OAEP adds randomness to the encryption process, preventing various attacks on deterministic RSA encryption.
-----BEGIN PUBLIC KEY-----. This is the standard format generated by OpenSSL and most tools.-----BEGIN PRIVATE KEY-----. Convert PKCS#1 keys with: openssl pkcs8 -topk8 -nocrypt -in private.pem -out pkcs8.pemRSA-OAEP can only encrypt messages smaller than the key modulus. With SHA-256 and a 2048-bit key, the maximum plaintext is 190 bytes. For larger data, use hybrid encryption: encrypt data with AES-256-GCM and encrypt only the AES key with RSA.
Generate keys with our RSA Key Generator tool, which produces PKCS#1 keys. Convert to SPKI/PKCS8 format using OpenSSL:
openssl rsa -pubin -in pkcs1_public.pem -pubout -out spki_public.pemopenssl pkcs8 -topk8 -nocrypt -in pkcs1_private.pem -out pkcs8_private.pemExplore more free utilities in Development
Regex Tester
Real-time regular expression tester with highlighting and cheat sheet.
Open
JSON Diff
Compare two JSON objects structurally to find differences.
Open
Subnet Calculator
Calculate IP ranges, netmasks, and CIDR subnet details.
Open
Cron Generator
Visual builder for Cron schedules with next-run previews.
Open
CSS Box Shadow
Visually design and generate CSS box-shadow code.
Open
Gitignore Generator
Create custom .gitignore files for your projects instantly.
Open