中文版说明请向下滚动.
Enclib is an enhanced encryption library wrapper for Python
WARNING: The library itself is still under active development. Algorithms may be modified without backwards compatibility support. Please DO NOT use it in production environment until the stable version is released.
- Cascaded encryption (AES-Blowfish-CAST5)
- Built-in key strengthening function which increases the difficult of brute-force attack and rainbow table attack.
- Quick mode using AES256 with key strengthening
- General class with built-in version identification function
- Python 2.7
- Pycrypto 2.6.1 (https://www.dlitz.net/software/pycrypto/)
#!/usr/bin/env python
from enclib import *
rawtext="This is the content."
key="password"
enc=Enclib()
enctext = enc.encrypt(key, rawtext)
print enctext.encode('hex')
rawtext = enc.decrypt(key, enctext)
print rawtextYou are welcome to audit the scripts and provide feedback on its functions or vulnerability.
Enclib 是一个增强型 Python 加密库。
警告: 截至当前 Enclib 目前仍处在初步开发阶段。在稳定版本发布之前,该库的算法可能会被更改而不提供向后的兼容支持,所以请暂时不要用在生产环境当中。
- 层叠加密算法 (AES-Blowfish-CAST5)
- 内置密匙增强功能。该功能可以增加暴力破解或者利用彩虹表破解的难度。
- 使用 AES256 加密的快速模式
- 内置版本核对功能的通用库
- Python 2.7
- Pycrypto 2.6.1 (https://www.dlitz.net/software/pycrypto/)
#!/usr/bin/env python
from enclib import *
rawtext="This is the content."
key="password"
enc=Enclib()
enctext = enc.encrypt(key, rawtext)
print enctext.encode('hex')
rawtext = enc.decrypt(key, enctext)
print rawtext欢迎任何人审核该库的代码并向我们提供反馈。