/pyskip32

Python port of skip32.c

Primary LanguagePythonThe UnlicenseUnlicense

pyskip32

Forked from pyrige/skippy mainly to rename prior to publishing so it won't collide with the existing and unrelated skippy package.

skip32 is a 80-bit key, 32-bit block cipher based on Skipjack. The Python code for the algorithm is a direct translation from C to Python of skip32.c by Greg Rose.

Example Usage

>>> from pyskip32 import Skip32
>>> key = b"s3cr3t_k3y"
>>> cipher = Skip32(key)
>>> encrypted = cipher.encrypt(42)
>>> encrypted
1139197039
>>> decrypted = cipher.decrypt(encrypted)
>>> decrypted
42

License

pyskip32 is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.