aboutsummaryrefslogtreecommitdiff
path: root/final/rsa-encrypt.py
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-11-11 23:03:23 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-11-11 23:03:23 -0500
commit0ef3d4cde99a8288339338d3ed9285a71c404236 (patch)
treee6c2e1d3e33217bb0fb2e67a3794fe37bd1af6f2 /final/rsa-encrypt.py
parent303437435f4b6ec660a8b289055fa190e1028328 (diff)
fixed endianness bugs
Diffstat (limited to 'final/rsa-encrypt.py')
-rw-r--r--final/rsa-encrypt.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/final/rsa-encrypt.py b/final/rsa-encrypt.py
index 05cf562..de9ba1e 100644
--- a/final/rsa-encrypt.py
+++ b/final/rsa-encrypt.py
@@ -14,6 +14,7 @@ messageblocks = []
while messagenum > 0:
messageblocks.append(messagenum%n)
messagenum = (messagenum-messagenum%n)//n
+print(messageblocks)
def encrypt_block(blk):
return (blk ** e) % n