

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: RSA
incomplete
2: RSA vs. ECC
incomplete
3: RSA Key Generation
incomplete
4: Totient and E
incomplete
5: Modular Arithmetic
incomplete
6: Modular Arithmetic
incomplete
7: Encryption
incomplete
8: Multiplicative Inverse
incomplete
9: Private Key
incomplete
10: Decryption
incomplete
11: Encryption and Decryption Explained
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
The multiplicative inverse of a number, say x, is written as x-1 or 1/x.
It's a number that when multiplied by x equals 1.
In the modular world, a multiplicative inverse of a is x as defined by this formula:
a * x ≡ 1 (mod m)
For example, an inverse of 3 in "mod 11" is 4 because:
3 * 4 ≡ 1 (mod 11)
As another example, an inverse of 5 in "mod 11" is 9 because:
5 * 9 ≡ 1 (mod 11)
Some numbers don't have a multiplicative inverse in a given mod. For example, 2 has no multiplicative inverse in "mod 4" because, in the following equation, there is no x that will result in a congruence:
2 * x ≡ 1 (mod 4)
This will be important later when we talk about decryption, but it's important to understand that this formula:
y^ax (mod m)
can be reduced to:
y^1 (mod m)
which reduces to:
y (mod m)
Of course, this all assumes that a is the modular multiplicative inverse of x in "mod m".