在网上发现一个极好的python库,用于信息安全的,叫 PyCrypto: https://www.dlitz.net/software/pycrypto/ 又找了windows的版本: http://www.voidspace.org.uk/python/modules.shtml#pycrypto 下载后装了用了一下,感觉很好: 包括听说过的所有主流算法: http://packages.python.org/pycrypto/ Submodules Crypto.Cipher: Symmetric- and asymmetric-key encryption algorithms. Crypto.Cipher.AES: AES symmetric cipher Crypto.Cipher.ARC2: RC2 symmetric cipher Crypto.Cipher.ARC4: ARC4 symmetric cipher Crypto.Cipher.Blowfish: Blowfish symmetric cipher Crypto.Cipher.CAST: CAST-128 symmetric cipher Crypto.Cipher.DES: DES symmetric cipher Crypto.Cipher.DES3: Triple DES symmetric cipher