RSA
A widely used public-key algorithm, named after its inventors Rivest, Shamir and Adleman, used for digital signatures and for encrypting small secrets such as keys.
In more detail
Its security rests on how hard it is to split the key's modulus, a product of two huge primes, back into those primes. Keys of 2048 bits or more are recommended today, and 1024-bit keys should be replaced. RS256, common for signed tokens, means an RSA signature over a SHA-256 hash, made with the private key and checked with the public key.
Examples
openssl genpkey -algorithm RSA creates a throwaway key pair for signing test tokensopenssl genpkey -quiet -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out rsa.keyrsa: public key 422 bytes, signature 384 bytesThe course's openssl commands create 2048-bit RSA key pairs for a practice authority and server.Related terms
- public-key cryptography — Cryptography that uses a pair of keys: a private key kept secret to sign or decrypt, and a public key that can be shared to verify or encrypt.
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- SHA-256 — A widely used hash function that turns any data into a 256-bit fingerprint, shown as 64 hexadecimal characters.
- modulus — In modular arithmetic, the number you divide by while keeping only the remainder, so that results wrap around like hours on a clock.
- key length — The size of a cryptographic key in bits, which sets how many possible keys an attacker would have to try.
- ECC — Elliptic curve cryptography: public-key cryptography built on the maths of elliptic curves, giving the same strength as RSA with far smaller keys.
- RS256 — A JSON Web Token signing algorithm that uses an RSA key pair with SHA-256.
- OpenSSL — A widely used toolkit and library for cryptography and TLS, including the openssl command-line tool.
Taught in
- KMS And Envelope Encryption: Who Can Still Decrypt? — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Security Capstone Review & Certification — Cybersecurity Fundamentals, GRC & Cryptography
- JWT Verification: Asymmetric Keys & Refresh Rotation — Production Full-Stack Engineering
- Encryption In Practice With OpenSSL — ISC2 Certified in Cybersecurity (CC) Exam Prep
- TLS And The Handshake — Application Security & Threat Modeling for Engineers
- Choosing The Right Cryptography — CompTIA Security+ (SY0-801) Exam Prep
- Port 2375, Open To The Office: Engine TLS And Registry Certificates — Docker Certified Associate (DCA) Exam Prep
- OpenSSH: Keys, Client Aliases And A Hardened Server — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Keys For Machines, People And Files — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep
References
- RFC 8017: PKCS #1 RSA cryptography specifications
- RFC 8017: PKCS #1: RSA Cryptography Specifications Version 2.2
- NIST FIPS 186-5: Digital Signature Standard
Certification courses
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- ISC2 CC course and practice exam: Certified in Cybersecurity
- CompTIA Security+ course and practice exam: SY0-801
- DCA course and practice exam: Docker Certified Associate
- LFCS course and practice exam: Linux Foundation Certified System Administrator
- LPIC-1 course and practice exam: Linux Administrator (101-500 and 102-500)