ARIA implementation with Python
How to Install
- Download setup.py and ARIA folder.
- Open a terminal, move to the directory that files are downloaded and run
$ python setup.py install
- Shortcut version for Windows Users
- Download a PyARIA-1.0.0.win32.exe.
- Run the PyARIA-1.0.0.win32.exe.
How to Use
import ARIA
or
from ARIA import *
APIs
- ARIA_encryption(plain, key, bits)
- Input
- plain: Plaintext. Nonnegative integer at most 128bits.
- key: Key value. Nonnegative integer at most bitsbits.
- bits: Number of bits of key. One of 128/192/256.
- Output
- Ciphertext. Nonnegative integer at most 128bits.
- Input
- ARIA_decryption(cipher, key, bits)
- Input
- cipher: Ciphertext. Nonnegative integer at most 128bits.
- key: Key value. Nonnegative integer at most bitsbits.
- bits: Number of bits of key. One of 128/192/256.
- Output
- Plaintext. Nonnegative integer at most 128bits.
- Input