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 details)
File details
Details for the file PyTEA-0.1.2.tar.gz
.
File metadata
- Download URL: PyTEA-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd64d2cd516c12253edc716a588aa08ddaddb526216f887f612160ed2843b3f |
|
MD5 | 2e2f6ea7af9ec8247a23d90bc4676582 |
|
BLAKE2b-256 | 25a10803654e394be2e0aa8f0da30edc6e11b9c83dc05af2c92ef4ee8b754ecb |