Tag Archives: xor

(Python) Simple XOR Hash

This is a simple hash that pads its input to the block size and XORs every block together. Output is in hexadecimal octets.

Posted in Python | Also tagged , , , , , , | Leave a comment

(Python) All-Or-Nothing Transform

Performs an all-or-nothing transform on a stream of chunks. The data can only be decrypted if every block is present to generate an HMAC for. The list of HMACs is then XOR’d against the final block from the transform, yielding the decryption key for the blocks. Currently uses the HMAC key for encryption as well [...]

Posted in Python | Also tagged , , , , , , | Leave a comment