---
title: "RSA Tools: Key Gen, Encrypt, Decrypt & Sign - AllTools"
description: "Generate RSA key pairs (1024–4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS — keys never leave your browser, ideal for quick crypto tests."
canonical_url: "https://tool.warmday.wang/en/crypto/rsa"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Generate RSA key pairs (1024–4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS — keys never leave your browser, ideal for quick crypto tests."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "RSA Tools: Key Gen, Encrypt, Decrypt & Sign"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **RSA Keys & Encryption/Decryption**

RSA asymmetric encryption tool. Supports key generation, public/private key encryption/decryption, digital signatures and verification.

### **Key Generation**

**Private Key (PEM)**

**Public Key (PEM)**

### **Format Conversion (PEM ↔ Hex)**

## **Usage**

#### **About the Algorithm**

RSA is an asymmetric encryption algorithm widely used for secure data transmission, based on the mathematical difficulty of factoring large integers. Public Key: used to encrypt data or verify signatures, can be shared openly. Private Key: used to decrypt data or generate signatures, must be kept strictly confidential. Encryption/Decryption: data encrypted with the public key can only be decrypted with the private key, ensuring only the private key holder can read the message. Sign/Verify: signatures generated by the private key can be verified with the public key, proving the message was indeed sent by the private key holder and has not been tampered with.

#### **Steps**

1\. Keys: select a key size (1024/2048/4096) and click "Generate Key Pair" to create PEM-formatted keys. 2. Encrypt/Decrypt: choose a padding scheme (RSA-OAEP recommended, or PKCS#1 v1.5 for compatibility), enter plaintext in the encrypt area, and use the public key to obtain Hex ciphertext. In the decrypt area, enter Hex ciphertext and use the private key to restore the plaintext (the same padding scheme must be used for both). 3. Sign/Verify: select a hash algorithm (SHA-1/SHA-256/SHA-384/SHA-512), enter the original content, and use the private key to generate a Hex signature. In the verify area, enter the original content and Hex signature, and use the public key to verify (the same hash algorithm must be used for both).

#### **Notes**

Generated keys are in PEM format by default (Base64-encoded DER data with headers and footers). Ciphertext is usually long and limited by key size (cannot encrypt very long data); it is typically combined with symmetric encryption (i.e., RSA encrypts the symmetric key). 1024-bit keys are no longer secure; 2048-bit or higher is recommended. This tool runs entirely in the browser; keys are never uploaded to the server. Generating 4096-bit keys may take a while. The PKCS#1 v1.5 padding scheme has known attacks (such as Bleichenbacher's attack) and is recommended only for compatibility with legacy systems; for new projects, use RSA-OAEP. Both ciphertext and signatures are Hex-encoded (not Base64).

## **Related tools**

More from the same category · Encryption

[**MD5 Hash**Generate 32-char MD5 digests for text and files to verify integrity and detect content changes locally.](https://tool.warmday.wang/en/crypto/md5) [**Hash Calculator**MD5, SHA-1, SHA-256, SHA-512 digests for text and files in one pass for checksums.](https://tool.warmday.wang/en/crypto/hash) [**Base64 Converter**Base64 encode/decode for text, UTF-8 and images, with Data URL output for inline embedding.](https://tool.warmday.wang/en/crypto/base64) [**Symmetric Encryption**Encrypt/decrypt with AES, DES, 3DES, RC4 and SM4, configurable mode, padding, key and IV, fully client-side.](https://tool.warmday.wang/en/crypto/symmetric) [**PGP Tools**Generate OpenPGP keys, encrypt, decrypt and sign text or files with GnuPG-compatible ASCII-armored output.](https://tool.warmday.wang/en/crypto/pgp) [**Certificate Tools**Parse X.509 certificates and CSR, inspect ASN.1 structure and resolve OIDs without OpenSSL.](https://tool.warmday.wang/en/crypto/cert)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/crypto/rsa#webpage","url":"https://tool.warmday.wang/en/crypto/rsa","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"RSA Tools: Key Gen, Encrypt, Decrypt & Sign","description":"Generate RSA key pairs (1024–4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS — keys never leave your browser, ideal for quick crypto tests."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/crypto/rsa#app","name":"RSA Tools: Key Gen, Encrypt, Decrypt & Sign","description":"Generate RSA key pairs (1024–4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS — keys never leave your browser, ideal for quick crypto tests.","url":"https://tool.warmday.wang/en/crypto/rsa","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/crypto/rsa#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/crypto/rsa#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Crypto & Security","item":"https://tool.warmday.wang/en/crypto"},{"@type":"ListItem","position":3,"name":"RSA Tools","item":"https://tool.warmday.wang/en/crypto/rsa"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
