Spaces:
Runtime error
Runtime error
Update crypt.py
Browse files
crypt.py
CHANGED
@@ -335,9 +335,14 @@ def decrypt_trans(data,key):
|
|
335 |
print(f' DATA ::: {data}')
|
336 |
enc_in = data
|
337 |
print(f' KEY ::: {key}')
|
338 |
-
private_key =
|
339 |
#enc_in = decode(im)
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
341 |
##private_key = RSA.import_key(open("private.pem").read())
|
342 |
#priv_key = decode(in2)
|
343 |
#print(f'priv_key:: {priv_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 |
+
private_key = RSA.import_key(key,passphrase=secret_code)
|
343 |
+
|
344 |
+
|
345 |
+
|
346 |
##private_key = RSA.import_key(open("private.pem").read())
|
347 |
#priv_key = decode(in2)
|
348 |
#print(f'priv_key:: {priv_key}')
|