MASHHASH

Hashing algorithm for A-Z ciphers and Block cipher


Keywords
cryptography
License
GPL-3.0
Install
pip install MASHHASH==0.1.3

Documentation

MASH HASH

Supports A-Z characters only

Usage:

from MASHASH import MASH
MASH(length=32).digest(data)

MASHBlock

Experimental A-Z block cipher based on the MASH hash function. Operates on 16 character blocks. Input data is automatically padded if not evenly divisible by the block length.

from MASHHASH import MASHBlock
MASHBlock(key).encrypt(data, iv)
MASHBlock(key).decrypt(data, iv)

MASHMAC

HMAC using MASH

from MASHHASH import MASHMAC
MASHMAC().mac(data, key)
MASHMAC().verify(data, key, mac)