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 tokens
openssl genpkey -quiet -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -out rsa.key
rsa: public key 422 bytes, signature 384 bytes
The course's openssl commands create 2048-bit RSA key pairs for a practice authority and server.

Related terms

Taught in

References

Certification courses