RSA (Rivest, Shamir, Adleman, 1977; published in 1978) bases its security on two facts:
- It is easy to multiply two large primes and obtain a number ;
- It is extremely hard (with current computers, impractical for primes of digits) to factorise recovering and .
Operating scheme.
- Alice chooses two large primes and computes and .
- She chooses coprime with (public encoding key).
- She computes such that (private decoding key). is the modular inverse of .
- She publishes . She keeps secret , , .
- Bob, to send the message , computes and sends .
- Alice decodes: , thanks to Euler .
Remark — Why it works in practice
All the encoding/decoding operations are done in polynomial time ( with fast exponentiation). The only step that would require exponential time is factorising : with primes of bits each ( decimal digits) no known computer can do it in reasonable time. RSA’s security rests on this asymmetry. The scenario will change if and when quantum computing makes Shor’s algorithm feasible: it is one of the reasons for the development of post-quantum cryptography.
Links
Topics: Distribuzioni probabilita
Concepts: Aritmetica modulare · Crittografia rsa · Funzione di eulero
Skills: Modellizzare
People: Adleman · Rivest · Shamir