Skip to content

Commit

Permalink
Update rsa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinal9999 authored Oct 7, 2021
1 parent 22dc707 commit a4e76a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cryptoquail/rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a4e76a6

Please sign in to comment.