From a4e76a6952aeba704f1866cf767b43877e6f983d Mon Sep 17 00:00:00 2001 From: cardinal9999 <86199598+cardinal9999@users.noreply.github.com> Date: Wed, 6 Oct 2021 21:22:45 -0400 Subject: [PATCH] Update rsa.py --- cryptoquail/rsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptoquail/rsa.py b/cryptoquail/rsa.py index 0106777..7931ddc 100644 --- a/cryptoquail/rsa.py +++ b/cryptoquail/rsa.py @@ -10,5 +10,5 @@ def generate_d(p, q, e): return a def encrypt(m, n, e): return (m ** e) % n -def decrypt(c, d, n): - return (c**d) % n +def decrypt(c, n, d): + return (c**n) % d