fixed formulas on RSA

This commit is contained in:
Stefan Etringer 2023-04-11 17:37:55 +02:00
parent 4daf8ceba7
commit 6e34adeffa
1 changed files with 3 additions and 3 deletions

View File

@ -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