Skip to content

pikhovkin/python-xtea3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-xtea3

GitHub Actions PyPI - Version PyPI - Python Version PyPI - License

Buy me a coffee Support me Patreon Liberapay

XTEA3 implementation

Installation

pip install python-xtea3

How to use

from xtea3 import encipher, decipher

origin_data = b'Hello XTEA3 !' * 42
key_bytes = b'1234567890123456' * 2  # 32 bytes (256 bits)
num_rounds = 32
endian = '!'

encrypted_data = encipher(origin_data, key_bytes, num_rounds, endian)
print(encrypted_data.hex())

decrypted_data = decipher(encrypted_data, key_bytes, num_rounds, endian)
print(decrypted_data)
assert origin_data == decrypted_data

License

MIT

About

XTEA3 implementation

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors