What is rsa

Last updated: April 1, 2026

Quick Answer: RSA (Rivest-Shamir-Adleman) is a widely-used encryption algorithm that enables secure communication through public-key cryptography. It allows two parties to encrypt and decrypt messages without sharing secret keys.

Key Facts

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:

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:

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.

Sources

  1. Wikipedia - RSA (Cryptosystem)CC-BY-SA-4.0
  2. NIST - Key Management GuidelinesPublic Domain