PyTEA

Tiny Encryption Algorithm (TEA) in Python.


License
MIT
Install
pip install PyTEA==0.1.1

Documentation

PyTEA

Wiki

Tiny Encryption Algorithm (TEA)

Installation

pip install PyTEA

Usage

from pytea import TEA
key = os.urandom(16)
print('key is', key)
content = 'Hello, 你好'
tea = TEA(key)
e = tea.encrypt(content.encode())
print('encrypt hex:', e.hex())
d = tea.decrypt(e)
print('decrypt:', d.decode())