Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -75,8 +75,11 @@ def encrypt_text(data,in2,address):
|
|
75 |
|
76 |
def decrypt_text(im,in2):
|
77 |
enc_in = stegan2.decode(im)
|
|
|
78 |
#private_key = RSA.import_key(open("private.pem").read())
|
79 |
-
|
|
|
|
|
80 |
print(f'private_key:: {private_key}')
|
81 |
enc_session_key = enc_in[:private_key.size_in_bytes()]
|
82 |
end1 = private_key.size_in_bytes()+16
|
|
|
75 |
|
76 |
def decrypt_text(im,in2):
|
77 |
enc_in = stegan2.decode(im)
|
78 |
+
|
79 |
#private_key = RSA.import_key(open("private.pem").read())
|
80 |
+
priv_key = stegan2.decode(in2)
|
81 |
+
print(f'priv_key:: {priv_key}')
|
82 |
+
private_key = RSA.import_key(priv_key)
|
83 |
print(f'private_key:: {private_key}')
|
84 |
enc_session_key = enc_in[:private_key.size_in_bytes()]
|
85 |
end1 = private_key.size_in_bytes()+16
|