

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 7
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
It will be important to understand a simple transformation that's possible with modular arithmetic. These 2 formulas are effectively equivalent:
n ≡ r (mod q)
n = qk + r
Where n is the number we're working with, r is the remainder, q is the divisor, and k is the number of times q goes into n. This allows us to convert an equation in the world of modular arithmetic into a more familiar equation in the normal world.
For example,
9 ≡ 1 (mod 2)
Can be converted to:
9 = 2k + 1
This will be important later.