RSA Encryption and Decryption Tool Icon

RSA Encryption and Decryption

Online RSA asymmetric encryption and decryption tool, supporting key pair generation, public key encryption and private key decryption, private key signing and public key verification. All operations are performed locally in the browser to ensure data security.

Tool Description

RSA Encryption and Decryption is an online RSA asymmetric encryption/decryption tool that is free and requires no installation — just open the page to use it. It supports key pair generation (1024/2048/4096-bit), public-key encryption / private-key decryption, private-key signing / public-key verification, and Base64 / Hex output encodings, with RSA + SHA-256 for signing. All operations run locally in your browser — keys and data never leave your device.

How to Use

  1. Generate Key Pair

    Click "Generate Key Pair" to create RSA public and private keys, or manually paste existing keys (PEM format).

  2. Select Operation Mode

    Select the operation mode: Encrypt (public key), Decrypt (private key), Sign (private key), Verify (public key).

  3. Set Parameters

    Choose the key size and output encoding (Base64 / Hex).

  4. Enter Text

    Enter text in the input area (plaintext for encrypt, ciphertext for decrypt, original text for sign).

  5. Run Operation

    Click the action button to execute. The result appears in the output area — copy or download as needed. For verification, the input must contain both the original text and the signature.

Use Cases

  • Data Transmission Encryption: Encrypt sensitive data with the recipient's public key — only the holder of the corresponding private key can decrypt it
  • Digital Signatures: Sign documents or messages with a private key; the recipient verifies with the public key to ensure data integrity and authenticity
  • Key Exchange: In symmetric encryption scenarios, use RSA to securely transmit symmetric keys (e.g. AES keys) for hybrid encryption
  • Identity Authentication: In protocols like SSH and HTTPS, RSA key pairs are used for authentication and secure connection establishment

Key Advantages

  1. Free & No Install

    The tool is completely free and works in the browser — no client software to download or install.

  2. Local & Private

    All encryption/decryption and signing/verification run locally in your browser; keys and data never leave your device.

  3. Full-Featured

    Supports key generation, encryption/decryption, and signing/verification — covering common asymmetric crypto needs.

  4. Multiple Key Sizes

    Offers 1024/2048/4096-bit key sizes, balancing compatibility and security.

  5. Multiple Encodings

    Provides Base64 and Hex output encodings for flexible transmission and storage.

  6. Easy to Use

    Clear form parameters with one-click copy and download — no cryptography background needed.

Key Size Comparison

Different key sizes determine the balance between security and performance:

Key Size Security Level Generation Speed Use Case
1024-bitLow, breakableFastTesting and learning
2048-bitHigh, recommendedMediumMost applications
4096-bitVery highSlowHigh-security scenarios

Encryption vs Signing

RSA's four operation modes have fundamental differences — please confirm which operation you need:

  • Public-Key Encryption - Encrypt data with the public key; only the private key holder can decrypt — ensures confidentiality
  • Private-Key Decryption - Decrypt data with the private key to recover the original content
  • Private-Key Signing - Generate a digital signature with the private key to prove data origin and integrity
  • Public-Key Verification - Verify with the public key that a signature was created by the corresponding private key — confirms data has not been tampered with

FAQ

What is the difference between RSA and AES/DES?

RSA is an asymmetric encryption algorithm using a public/private key pair — it is slower but ideal for key exchange and signing. AES/DES are symmetric encryption algorithms using the same key for both encryption and decryption — they are fast and suitable for bulk data encryption. In practice, the two are often combined: use RSA to encrypt a symmetric key, then use the symmetric algorithm for the actual data (hybrid encryption).

How much data can RSA encrypt?

RSA encryption length is limited by the key size. With PKCS#1 v1.5 padding, the maximum encryption length is (key bits / 8 - 11) bytes. For example, a 2048-bit key can encrypt at most 245 bytes. For longer data, hybrid encryption is recommended: generate a random AES key to encrypt the data, then encrypt the AES key with the RSA public key.

Why is the generated key so long?

RSA keys are Base64-encoded PEM format text containing the key's mathematical parameters (modulus n, exponent e/d, etc.). The longer the key size, the longer the resulting text. A 2048-bit private key is typically around 1700 characters — this is normal.

What is the difference between encryption and signing? Which should I use?

Encryption protects data confidentiality (others cannot read it) — encrypt with the recipient's public key, decrypt with the recipient's private key. Signing ensures data integrity and authenticity (proving who sent it and that it was not modified) — sign with the sender's private key, verify with the sender's public key. They serve different purposes; choose based on your needs.

Is my data uploaded to a server?

No. All operations (key generation, encryption/decryption, signing/verification) run entirely in your browser. Your keys and data never leave your device.

What should I do if verification shows "Failed"?

Possible causes: ① The public key used for verification does not match the private key used for signing; ② The original text has been modified (including spaces and line breaks); ③ The signature format is incorrect (encoding mismatch); ④ The input format is wrong (for verification, the original text and signature must be in the correct format). Make sure you are using the correct public key and the complete original text.

Is RSA suitable for encrypting large files?

RSA's single-pass encryption length is limited by the key size, so it is not suited to encrypting large files directly. For large files use hybrid encryption: encrypt the file with a symmetric algorithm like AES, then encrypt the AES key with the RSA public key and transmit both.

Can the public key be made public?

Yes, and it should be. The public key is used for encryption and verification and is designed to be distributed openly; only the private key must be kept strictly secret — rotate the key pair immediately if it is ever exposed.

Does key generation require an internet connection?

No. Key generation runs entirely in your browser — it needs no network and uploads nothing, so you can use it with confidence.

Does it support Chinese and other non-ASCII characters?

Yes. Text is processed as UTF-8, so Chinese, Japanese, Korean, and any Unicode characters encrypt, decrypt, and sign normally. Output uses Base64 or Hex encoding for safe transmission.

Is RSA still secure today?

RSA with a 2048-bit or larger key is still considered secure and is widely used in HTTPS, SSH, and more. 1024-bit RSA is considered breakable and should not be used in production; for higher security needs, choose 4096-bit.

What are the benefits of local processing?

Local processing means your private key and data are never uploaded to any server, eliminating leakage risks in transit and storage. It also works offline with faster response and stronger privacy.

Content last updated:2026-07-15

Related Tools

DES Encryption

DES Encryption

Online DES/2DES/3DES encryption and decryption tool, supporting all encryption modes and padding methods. Fully processed locally in the browser for security and efficiency.

AES Encryption

AES Encryption

Online AES encryption and decryption tool, supporting AES-128/192/256, covering all encryption modes and padding methods, secure, efficient, and easy to operate.

3DES Encryption

3DES Encryption

Online 3DES encryption/decryption tool, supporting all encryption modes and padding methods, fully processed locally in the browser to ensure data security.

RC4 Encryption

RC4 Encryption

Online RC4 stream cipher encryption/decryption tool, supports multiple key lengths, one-click encryption and decryption, all operations are completed locally in the browser to ensure data security.

Rabbit Encryption

Rabbit Encryption

Online Rabbit stream cipher encryption/decryption tool, using a high-speed symmetric encryption algorithm, supporting multiple key lengths. All operations are performed locally in the browser to ensure data security.

RC2 Encryption

RC2 Encryption

Online RC2 encryption and decryption tool, supporting ECB/CBC modes, variable key length and effective key bits, all processed locally in the browser to ensure data security.

IDEA Encryption

IDEA Encryption

Online IDEA International Data Encryption Algorithm Tool, supporting multiple encryption modes including ECB/CBC/CFB/OFB/CTR. All operations are performed locally in the browser to ensure data security.

Blowfish Encryption

Blowfish Encryption

Online Blowfish encryption/decryption tool supporting 128/192/256/448-bit variable keys, ECB/CBC/CFB/OFB modes, and multiple padding methods. All operations are performed locally in the browser to ensure data security.

CAST Encryption

CAST Encryption

CAST-128 (CAST5) online encryption and decryption tool, supporting multiple encryption modes such as ECB/CBC/CFB/OFB, flexible padding methods, and output encoding. All operations are performed locally in the browser, ensuring security and efficiency.

SM4 National Encryption

SM4 National Encryption

Online SM4 National Symmetric Encryption and Decryption Tool, supporting five working modes: ECB/CBC/CFB/OFB/CTR, and multiple padding methods. All operations are performed locally in the browser to ensure data security.

MD5 Encryption

MD5 Encryption

Online MD5 hash encryption tool, supporting 16-bit/32-bit output, case switching, and file MD5 verification. All operations are completed locally in the browser, ensuring security and efficiency.

MD2 Encryption

MD2 Encryption

MD2 Encryption Tool: Generate 32-bit MD2 hash values online, supporting uppercase/lowercase output and file verification.

SHA-1 Encryption

SHA-1 Encryption

Online SHA-1 hash calculation tool for efficient text encryption and file integrity verification.

SHA-256 Encryption

SHA-256 Encryption

Online SHA-256 hash calculation tool for quick text encryption and file integrity verification.

SHA-384 Encryption

SHA-384 Encryption

Online SHA-384 hash calculation tool for fast text encryption and file integrity verification.

SHA-512 Encryption

SHA-512 Encryption

Online SHA-512 hash calculation tool, supporting text encryption and file integrity verification, quickly generating secure hash values.

SM3 National Encryption

SM3 National Encryption

Online SM3 National Hash Encryption Tool, supports text hash calculation and file verification, outputs a 256-bit hash value, compliant with GM/T 0004-2012 national standard.

Base64 Encode/Decode

Base64 Encode/Decode

Online Base64 encode/decode tool, supporting text Base64 encoding and decoding, all done locally in the browser, safe and efficient.

URL Encode/Decode

URL Encode/Decode

Online URL encoding and decoding tool, supports intelligent encoding and decoding of URL parameters, automatically identifies URL structure, processes only the parameter part, completes entirely in the browser locally, safe and efficient.

UTF-8 Encode/Decode

UTF-8 Encode/Decode

Online UTF-8 encoding/decoding tool, supporting conversion between text and UTF-8 hexadecimal bytes. All processing is done locally in the browser, ensuring data security.

General Membership

Enjoy membership benefits

Exclusive Benefits

  • Unlimited use of 290+ web tools
  • Cross-platform benefits
  • New tools included
  • Free updates

Basic Benefits

  • Larger file size
  • More files
  • Full features on web
  • Full features on desktop

Monthly Member Plan

¥ 8.9
Original: ¥19.9
Valid for 30 days

Quarterly Member Plan

¥ 19.9
Original: ¥59.9
As low as 6.6 yuan/month
Hot

Yearly Member Plan

¥ 69.9
Original: ¥229.9
As low as 5.8 yuan/month
Pay: ¥ 9

Please scan with WeChat to pay

Payment indicates your agreement to the relevant terms

*No 7-day unconditional refund