Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,7 +64,7 @@ def rsa_generate():
|
|
| 64 |
|
| 65 |
|
| 66 |
def rsa_encrypt(msg,pubKey):
|
| 67 |
-
|
| 68 |
key = b64decode(pubKey)
|
| 69 |
private_key = RSA.importKey(key)
|
| 70 |
#cipher = PKCS1_v1_5.new(private_key)
|
|
|
|
| 64 |
|
| 65 |
|
| 66 |
def rsa_encrypt(msg,pubKey):
|
| 67 |
+
pubKey = pubKey.strip('"')
|
| 68 |
key = b64decode(pubKey)
|
| 69 |
private_key = RSA.importKey(key)
|
| 70 |
#cipher = PKCS1_v1_5.new(private_key)
|