updated test file
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
486e40c7f5
commit
99e2ac0655
@ -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)
|
||||
print(sig_un)
|
||||
print(key)
|
Loading…
Reference in New Issue
Block a user