Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,7 @@ def rsa_generate():
|
|
| 42 |
|
| 43 |
|
| 44 |
def rsa_encrypt(msg,pubKey):
|
|
|
|
| 45 |
msg = b'A message for encryption'
|
| 46 |
encryptor = PKCS1_OAEP.new(pubKey)
|
| 47 |
encrypted = encryptor.encrypt(msg)
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
def rsa_encrypt(msg,pubKey):
|
| 45 |
+
pubKey=pubKey.encode()
|
| 46 |
msg = b'A message for encryption'
|
| 47 |
encryptor = PKCS1_OAEP.new(pubKey)
|
| 48 |
encrypted = encryptor.encrypt(msg)
|