Windows下python安装PyCrypto加密模块以及使用

本文档介绍了在Windows8系统上,如何在Python3.4环境下安装PyCrypto加密模块。通过下载并解压PyCrypto,然后在CMD中执行相关命令完成安装。此外,还提供了官方对模块的简介和使用示例。
摘要由CSDN通过智能技术生成
本机环境:
  • Windows8(Windows系列都可以)
  • python3.4
步骤一:首先下载PyCryto

PyCrypto点击下载—下载完解压

假设我解压到H盘,打开cmd,cd到pycrypto-2.6.1文件夹下
执行如下命令:
这里写图片描述

接着执行:H:\pycrypto-2.6.1>python setup.py install

安装完成!

下面官方对模块的介绍以及使用的一些小例子

This is a collection of both secure hash functions (such as SHA256 and
RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
etc.). The package is structured to make adding new modules easy.
This section is essentially complete, and the software interface will
almost certainly not change in an incompatible way in the future; all
that remains to be done is to fix any bugs that show up. If you
encounter a bug, please report it in the Launchpad bug tracker at

   https://launchpad.net/products/pycrypto/+bugs
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
#SHA256例子
hash = SHA256.
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值