本机环境:
- 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.