密码-RSA

Cyber-RSA的Python项目详细描述


赛博RSA

生成密码的python包。

用法

RSA是一个非对称系统, 这意味着将生成一个密钥对, 公钥和私钥, 显然,你要保护你的私钥,并把它传给公众。

  Import CyberRSA

  encoded = encrypt(message, PublicKey())
  decoded = decrypt(encoded, PrivateKey())

  message- Message to encrypt

  PublicKey - To read the public key from PEM file.

  PrivateKey - To read the Private key from PEM file.

  generate_keys() - Using this function we can generate public key and private key PEM file in oneshot (PEM file available in parent directory of the python script).

  encoded - Encrypted message send across network.

  decoded - Decrypted message.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java从JSP或HTML向servlet发送多个参数   java方法来查看字符是否在字符数组中   使用带有java的MAC地址连接到设备   java如何将csv文件中的数据打印到secondactivity?   java如何从netbean 7.0.1连接到数据库   java考虑所有可能的类值,用于输出测试分割的预测值。   java我的actionListener调用有什么问题   swing在Java中实现粒子过滤器最有效的方法是什么?   java运行。getFontFamily()为返回null。使用apachepoi的docx文件   一个事务中的java领域循环与每个步骤循环中的一个事务   java日期格式与Spring Boot不兼容   java类冲突。处理   java GridBagLayout不工作   java将图像发送到另一个应用程序