fixed formulas on RSA
This commit is contained in:
parent
4daf8ceba7
commit
6e34adeffa
|
@ -9,12 +9,12 @@ $$
|
||||||
|
|
||||||
* There is also
|
* There is also
|
||||||
$$
|
$$
|
||||||
$\phi$ = (p-1) * (q-1)
|
\phi = (p-1) * (q-1)
|
||||||
$$$
|
$$$
|
||||||
|
|
||||||
* Encryption, public key `e` is a prime between 2 and phi
|
* Encryption, public key `e` is a prime between 2 and phi
|
||||||
$$
|
$$
|
||||||
2 < e < $\phi$
|
2 < e < \phi
|
||||||
$$
|
$$
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
@ -26,7 +26,7 @@ for i in range (2, phi):
|
||||||
|
|
||||||
* Decryption, private key `d`
|
* Decryption, private key `d`
|
||||||
$$
|
$$
|
||||||
d * e mod $\phi$ = 1
|
d * e mod \phi = 1
|
||||||
$$
|
$$
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
Loading…
Reference in New Issue