Omnibus commited on
Commit
1d887b0
·
1 Parent(s): 0d5618b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)