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第三方库


热门话题
java WebClient请求级别超时抛出名为default onErrorDropped的运算符   java JAXB外部绑定文件错误   Freemarker中的java转义宏参数值   java正在同步来自不同对象{已编辑}的线程   java如何在另一个类上更新活动中的元素   java Hibernate连接查询   java可以使用Apache Crunch创建类似于图形的数据结构吗?   java在JLabel的开头加上3个点   java 安卓应用程序显示线程错误   java@RequestBody在Spring中总是空的   java Android异步任务永远不会结束   具有多个属性的java Jaxws枚举   java中的安卓 Stripe InvalidRequestException   多线程java。util。非多线程程序中的ConcurrentModificationException   Minecraft Java插件如何删除HashMap中存储的所有块   空Java字符串的大小   从AJP连接器请求检索Shibboleth属性的java   oracle11g将Java类文件加载到Oracle数据库