xtea的python版本

xtea4的Python项目详细描述


MaintainabilityTest CoverageTravis CI build status

这是用python(扩展的微型加密算法)实现的xtea密码。

XTEA is a blockcipher with 8 bytes blocksize and 16 bytes Keysize (128-Bit). The algorithm is secure at 2014 with the recommend 64 rounds (32 cycles). This implementation supports following modes of operation: ECB, CBC, CFB, OFB, CTR

示例:

>>> from xtea4 import *
>>> key = " "*16  # Never use this
>>> text = "This is a text. "*8
>>> x = new(key, mode=MODE_OFB, IV="12345678")
>>> c = x.encrypt(text)
>>> text == x.decrypt(c)
True

I do NOT guarantee that this implementation (or the base cipher) is secure. If you find bugs, please report them at https://github.com/tgates42/xtea/issues .

变更日志

(开发)版本0.6.1;…

  • Improved tests
  • PEP8-style formatting
  • Unittests: Counter, modes (but not results of them!), test vectors
  • [BREAKING CHANGE] Counter class is now in xtea4.counter

(未发布)版本0.6.0;2016年10月16日
  • Python 3 does work now
  • [BREAKING CHANGE] counters cannot return numbers any more, they must return bytestrings now
  • [BREAKING CHANGE] Cipher objects remember state, so two consecutive calls to XTEACipher.encrypt should not return the same
  • improved documentation

(未发布)版本0.5.0;2016年10月15日
  • Removed CBCMAC

版本0.4.1;2015年7月30日
  • Fixed installer

版本0.4.0;2014年7月12日
  • Buggless & PEP compliant CTR
  • CTR mode works with strings now
  • raises DeprecatedWarning if a number is returned
  • CBCMAC class added (use static method CBCMAC.new(args) to create)

版本0.3.2;2014年7月11日
  • Minor Fixes

版本0.3.1;2014年7月11日
  • Minor Fixes
  • Fixed that the length of data will not be checked

版本0.3.0;2014年7月11日
  • Added CFB mode
  • Fully working with PEP 272
  • Raising NotImplementedError only on PGP-CFB (OpenPGP) mode
  • Wheel support and changelog (0.2.1)

版本0.2.1-dev;2014年7月10日

从未发布…

  • Added better wheel support for uploading (just for me) with a setup.cfg
  • Added this file (auto uploading on pypi/warehouse and github)
  • (upload.py for github)

版本0.2.0;2014年7月9日
  • Added a test feature; warning in CTR
  • Added a test feature
  • Raises warning on CTR, added a handler that CTR will not crash anymore ;)

版本0.1.1;2014年7月9日

[0.1.1]在循环流化床上不执行错误

  • Module raises a NotImplementedError on CFB
  • Minor changes

版本0.1;2014年6月22日

[0.1]初始版本

  • Supports all mode except CFB
  • Buggy CTR ( “ß” = “\xc3\x9f” )
  • Working with PEP 272, default mode is ECB

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

推荐PyPI第三方库


热门话题
部署在kubernetes上时,微服务中服务间通信中的java连接超时问题   java Nway合并对2G字符串文件进行排序   java如何使用FlexJson按特定顺序序列化对象和属性   如何在java布尔方法中导入文本文件   swing需要帮助在我的Java GUI中实现用户输入的侦听器   java如何读取枚举中Spring Messagesource的内容?   每个Ajaxcall上(之前和之后)的java Javascript   java compareTo(Comparable)方法对于Comparable类型未定义   带换行符的java Bash输入重定向   使用Spring授权标记检查用户是否登录时发生java错误?   使用大尺寸(100000)数组执行快速排序时出现Java StackOverflower错误   java forEach迭代器标记   Java ClassNotFound异常,Maven依赖项作为JAR   java将HQL转换为SQL查询   java正在将片段列表发送到FragmentPagerAdapter   java onActivityResult应该调用super。onActivityResult   java如果我导入一个超类,我也需要导入它的子类吗?   java是否可以通过openid协议对aadhar进行身份验证