Skip to content
/ xtea Public
forked from Varbin/xtea

A python version of XTEA

Notifications You must be signed in to change notification settings

areyal/xtea

 
 

Repository files navigation

Python XTEA

Github Actions: QA Maintainability Test Coverage Documentation Status

This is an XTEA-Cipher implementation in Python (eXtended Tiny Encryption Algorithm).

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

Example:

>>> from xtea 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

Resources

About

A python version of XTEA

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 87.7%
  • C 8.7%
  • Batchfile 3.6%