0

To work with RSA encrytion in Python, I have done extensive research and found several libraries including pycrypto, pycryptodome, etc. However, by using the simple code below.. it all works and it concerns me that I'm missing something????

This is my basic code that seems to work easily in Python 3.7 for RSA asymmetric encryption. It's simple.

import rsa

(pubkey, privkey) = rsa.newkeys(1024)

 message = b'my top secret'

 crypto = rsa.encrypt(message,pubkey)
 decrypt = rsa.decrypt(crypto,privkey)

What am I missing??

President James K. Polk
  • 40,516
  • 21
  • 95
  • 125
PidePython
  • 61
  • 1
  • 5

0 Answers0