Avatar ·

如何用你自己的密钥加密RSA方法?

📁 方法, python

如何用你自己的密钥加密RSA方法?

   import  rsa (PUBKEY, PRIVKEY) = rsa.newkeys ( 512 ) message =  b'hello world! '  # encryption  crypto = RSA.ENCRYPT (Message, PubKey)   print  (Crypto)