How to implement OpenSSL functionality in Python?

后端 未结 3 1771
别跟我提以往
别跟我提以往 2021-02-04 08:42

I would like to encrypt a secret text by public-key and decrypt it by private-key in Python. I can achieve that with the openssl command:



        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-04 09:04

    Probably the easiest way to get exactly the same behaviour would be using pyOpenSSL - it's a thin Python wrapper for OpenSSL itself.

提交回复
热议问题