Python和PGP /加密 [英] Python and PGP/encryption

查看:313
本文介绍了Python和PGP /加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用python使用公钥加密密码的功能。
在用户端我需要安装将生成密钥对的PGP软件。我想使用公钥仅用于加密和私钥进行解密。
问题来自加密功能(如何使用密钥进行加密)以及pgp安装。
可以有人告诉我正确的方式这样做



谢谢

解决方案

这里是一个使用pgp和python的开源项目。我认为这是你正在寻找的。

你实际上不必自己发明算法,他们已经在那里了。 $ b

i want to make a function using python to encrypt password by the public key. at the user end i need to install PGP software which will generate the key pair .i want to use public key only for encryption and private key for decryption. The problem is coming with the encryption function(how to use key for encryption) and also in pgp installing . can somebody tell me the correct way to do this

thanks

解决方案

Here is an open source project for using pgp with python. I think this is what you're looking for.

You actually don't have to invent the algorithms yourself, they're already there.

这篇关于Python和PGP /加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆