/prince

PRINCE cipher in Python

Primary LanguagePython

PRINCE cipher written in Python 2.7

The code has encrypt() and decrypt() functions that take arbitrary keys and block contents. It was written for Python2.7 and will not work in Python3 since it uses strings as character arrays to represent data.

Status

The Python reference implementation is functional. No efforts have been made to achieve speed or to defend against side-channel analysis or any other kind of attack.