Spaces:
Sleeping
Sleeping
Ahmad Hammoudeh
commited on
Commit
·
22af54c
1
Parent(s):
9366273
Update msg_encX.py
Browse files- msg_encX.py +1 -1
msg_encX.py
CHANGED
|
@@ -46,7 +46,7 @@ def seedx(path , User_passcode=User_passcode0, N_days=N_days0, encryption_diffic
|
|
| 46 |
with open(path +'pblc.pem', 'w') as f:
|
| 47 |
f.write(publicKey.save_pkcs1().decode('utf-8'))
|
| 48 |
|
| 49 |
-
return {'seed':seed,'publicKey': publicKey
|
| 50 |
|
| 51 |
|
| 52 |
def AES_encrypt(User_message,seed, publicKey,encoding = encoding0, padding = padding0):
|
|
|
|
| 46 |
with open(path +'pblc.pem', 'w') as f:
|
| 47 |
f.write(publicKey.save_pkcs1().decode('utf-8'))
|
| 48 |
|
| 49 |
+
return {'seed':seed,'publicKey': publicKey} #, 'privateKey': privateKey}
|
| 50 |
|
| 51 |
|
| 52 |
def AES_encrypt(User_message,seed, publicKey,encoding = encoding0, padding = padding0):
|