From 6e34adeffaf4df7940f623af4c5ff1bfde619761 Mon Sep 17 00:00:00 2001 From: whx Date: Tue, 11 Apr 2023 17:37:55 +0200 Subject: [PATCH] fixed formulas on RSA --- Cryptography/RSA.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Cryptography/RSA.md b/Cryptography/RSA.md index 5a33742..f9dae63 100644 --- a/Cryptography/RSA.md +++ b/Cryptography/RSA.md @@ -9,12 +9,12 @@ $$ * There is also $$ -$\phi$ = (p-1) * (q-1) +\phi = (p-1) * (q-1) $$$ * Encryption, public key `e` is a prime between 2 and phi $$ -2 < e < $\phi$ +2 < e < \phi $$ ```python @@ -26,7 +26,7 @@ for i in range (2, phi): * Decryption, private key `d` $$ -d * e mod $\phi$ = 1 +d * e mod \phi = 1 $$ ```python