From 0ef3d4cde99a8288339338d3ed9285a71c404236 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 11 Nov 2019 23:03:23 -0500 Subject: fixed endianness bugs --- final/rsa-encrypt.py | 1 + 1 file changed, 1 insertion(+) (limited to 'final/rsa-encrypt.py') 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 -- cgit