RSA Encryption/Decryption Tool
Generate RSA key pairs and perform text encryption and decryption online.
Private Key
Public Key
Input
Result
Result
What is RSA Encryption?
RSA is an asymmetric cryptographic algorithm consisting of a public and private key. The public key is for encryption, and the private key is for decryption, and vice versa for signatures.
Benefits of RSA
- No need to share private keys
- Supports digital signatures
- Extremely high security
- Foundation for authentication
Common Standards
- PKCS#1
- PKCS#8
- 1024 / 2048 / 4096 bit keys
Scenarios
- Secure email transmission
- Digital certificates
- SSH login
- Banking security
Key Features
- Slower processing speed
- Key pair management
- Asymmetry
Operation Flow
- Generate Keys: Click 'Generate Key Pair' to get your public and private keys.
- Encrypt: Use the public key to encrypt plaintext into ciphertext.
- Decrypt: Use the private key to decrypt ciphertext back to plaintext.
FAQ
What key size should I choose?
At least 2048 bits is currently recommended. For higher security requirements, choose 4096 bits.
Why can't RSA encrypt large files?
RSA is relatively slow and has data length limits; it is typically used to encrypt symmetric keys rather than large amounts of raw data.