Tiny Encryption Algorithm (TEA) in Python.
Project description
Wiki
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())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyTEA-0.1.2.tar.gz
(2.8 kB
view hashes)