Omnibus commited on
Commit
6f69820
·
1 Parent(s): c38d273

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -45,9 +45,11 @@ def rsa_generate():
45
  output = re.search('[0-9a-fA-F]{32}', str(pubKeyPEM))
46
  qr_wal=qrx.make(output)
47
  qr_wal.save("qr_wal_tmp.png")
 
 
48
  out1 = f'{pubKey.n}{keyPair.d}'
49
  out2 = f'{pubKey.n}{keyPair.e}'
50
- return keyPair.exportKey,pubKey.exportKey,output,"qr_wal_tmp.png",output
51
 
52
  def rsa_encrypt(msg,pubKey):
53
  pubKey=pubKey.encode("utf-8")
 
45
  output = re.search('[0-9a-fA-F]{32}', str(pubKeyPEM))
46
  qr_wal=qrx.make(output)
47
  qr_wal.save("qr_wal_tmp.png")
48
+ privcipher = PKCS1_OAEP.new(keyPair)
49
+ pubcipher = PKCS1_OAEP.new(pubKey)
50
  out1 = f'{pubKey.n}{keyPair.d}'
51
  out2 = f'{pubKey.n}{keyPair.e}'
52
+ return privcipher,pubcipher,output,"qr_wal_tmp.png",output
53
 
54
  def rsa_encrypt(msg,pubKey):
55
  pubKey=pubKey.encode("utf-8")