What is rsa
Last updated: April 1, 2026
Key Facts
- RSA was invented in 1977 by Ron Rivest, Adi Shamir, and Leonard Adleman and published in 1978
- RSA is a public-key cryptographic algorithm based on the mathematical difficulty of factoring large prime numbers
- RSA uses two keys: a public key for encryption and a private key for decryption
- RSA is widely used in SSL/TLS certificates for HTTPS website encryption and digital signatures
- RSA key sizes range from 512 bits to 4096 bits, with 2048-bit and 4096-bit keys being the current standard for security
Overview
RSA (Rivest-Shamir-Adleman) is a public-key cryptographic algorithm that enables secure communication over insecure channels. RSA was invented in 1977 and published in 1978, making it one of the oldest and most widely-used encryption methods. The algorithm revolutionized cryptography by enabling two parties to communicate securely without pre-sharing a secret key.
How RSA Works
RSA is based on the mathematical principle that multiplying two large prime numbers is easy, but factoring the product back into prime numbers is extremely difficult. RSA uses two related keys: a public key that anyone can use to encrypt messages, and a private key that only the recipient possesses to decrypt messages. Anyone can encrypt data with the public key, but only the private key holder can decrypt it.
Key Generation and Size
RSA key generation involves:
- Selecting two distinct large prime numbers
- Computing their product (the modulus)
- Calculating values based on number theory to create the public and private exponents
- Distributing the public key while keeping the private key secret
RSA key sizes are measured in bits. 512-bit keys are no longer considered secure, while 2048-bit and 4096-bit keys provide strong security for current and near-future applications. Larger keys offer greater security but require more computational resources.
Applications and Uses
RSA is used in numerous security applications:
- SSL/TLS Certificates - Securing HTTPS website connections
- Digital Signatures - Verifying message authenticity and origin
- Email Encryption - Securing email communications through PGP/GPG
- VPN Protocols - Establishing secure virtual private network connections
- Key Exchange - Securely sharing symmetric encryption keys
Security and Future
RSA remains secure for most current applications. However, the RSA patent expired in 2000, making it freely available. Quantum computers pose a theoretical future threat to RSA's security, spurring research into post-quantum cryptographic algorithms. For now, properly implemented RSA with adequate key sizes (2048-bit or larger) remains a reliable encryption standard.
Related Questions
How is RSA different from symmetric encryption?
RSA is asymmetric encryption using two different keys (public and private), while symmetric encryption uses the same key for both encryption and decryption. RSA is useful for key exchange and digital signatures, while symmetric encryption is faster for encrypting large amounts of data.
What are RSA keys used for?
RSA keys are used for encrypting messages, verifying digital signatures, and establishing secure connections. The public key encrypts data while the private key decrypts it. This enables secure communication between parties who have never met.
Is RSA encryption secure?
RSA with 2048-bit or larger keys is currently considered secure. However, quantum computers could theoretically break RSA in the future. Organizations should use adequate key sizes and transition to post-quantum algorithms when they become standardized.
More What Is in Daily Life
Also in Daily Life
More "What Is" Questions
Trending on WhatAnswers
Browse by Topic
Browse by Question Type
Sources
- Wikipedia - RSA (Cryptosystem)CC-BY-SA-4.0
- NIST - Key Management GuidelinesPublic Domain