4

使用python创建公钥密钥,进行RSA加密解密

 3 years ago
source link: https://segmentfault.com/a/1190000040352500
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用python创建公钥密钥,进行RSA加密解密

发布于 18 分钟前

首先记住一点,公钥加密,私钥解密。

下载RSA加密得包
pip install rsa
首先生成公钥和密钥放到项目路径中以便使用。
Snipaste_2021-07-15_15-18-34.png

使用python进行创建读写出公钥密钥得文件。然后写俩个加密解密得方法进行测试使用。

Snipaste_2021-07-15_15-26-17.png

完美使用公钥加密私钥解密!!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK