How to implement OpenSSL functionality in Python?

后端 未结 3 1775
别跟我提以往
别跟我提以往 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:05

    The m2crypto module(s) expose much of OpenSSL's functionality to Python, including public/private encryption, decryption, and signing.

    Most Linux distribution provide the m2crypto module as a native package.

提交回复
热议问题