From 99e2ac0655c4abedaf9482f4588cfefb8d41d1c8 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sat, 18 Apr 2020 02:21:53 +0300 Subject: [PATCH] updated test file Signed-off-by: HeshamTB --- encodetest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/encodetest.py b/encodetest.py index 37e33ce..70e57b4 100644 --- a/encodetest.py +++ b/encodetest.py @@ -1,6 +1,6 @@ -s = 'test message hello awdawdaefe' +s = 'test message hello awdawd' print(s) s_number = int.from_bytes(s.encode('utf-8'),'little') print(s_number) @@ -16,7 +16,7 @@ print(msg_list) import rsa as en -key = en.generateKeys() +key = en.generateKeys("temp") enc_list = list() pub_key = (key[0],key[1]) for word in msg_list: @@ -36,4 +36,5 @@ d = key[en.E] sig_enc = en.encrypt(sig,(n,e)) print(sig_enc) sig_un = en.decrypt(sig_enc,d,n) -print(sig_un) \ No newline at end of file +print(sig_un) +print(key) \ No newline at end of file