How RSA Works
- pick 2 prime numbers
, which are large numbers, they are private which returns the number of numbers coprime with (doesn't share a common factor with it) - choose
which must: - coprime with
and is a constant between (3, 5, 17, 65537)
- choose
which must: - public key is (e, n); private key is (d, n)
- to Encrypt use:
, where is the original message - to Decrypt use:
, where is the cipher text - The message is converted to numbers