Spaces:
Runtime error
Runtime error
Update crypt.py
Browse files
crypt.py
CHANGED
@@ -335,11 +335,11 @@ def decrypt_trans(data,key):
|
|
335 |
print(f' DATA ::: {data}')
|
336 |
enc_in = data
|
337 |
print(f' KEY ::: {key}')
|
338 |
-
private_key =key
|
339 |
#enc_in = decode(im)
|
340 |
secret_code="SECRET PASSWORD"
|
341 |
|
342 |
-
|
343 |
|
344 |
|
345 |
|
|
|
335 |
print(f' DATA ::: {data}')
|
336 |
enc_in = data
|
337 |
print(f' KEY ::: {key}')
|
338 |
+
#private_key =key
|
339 |
#enc_in = decode(im)
|
340 |
secret_code="SECRET PASSWORD"
|
341 |
|
342 |
+
private_key = RSA.import_key(key,passphrase=secret_code)
|
343 |
|
344 |
|
345 |
|