From e0ad241bc70be22ec97bd0de5cde4c757246ad99 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 24 Apr 2023 19:24:28 +0200 Subject: [PATCH] authur1 boilerplate --- src/authur1.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 src/authur1.py diff --git a/src/authur1.py b/src/authur1.py new file mode 100755 index 0000000..39296bc --- /dev/null +++ b/src/authur1.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +""" +A custom authentication hash function aswell as an automated extension attack for it. + +Since this (auth) hash did not have a name before, I gave it the name 'authur1' + +@author Christoph J. Scherr +@license MIT +@source: https://git.cscherr.de/PlexSheep/python-dhbw/src/branch/master/src/authur1.py +""" +import math +import argparse + +DEFINED_INITIAL = bytearray(bytes([0x52, 0x4f, 0x46, 0x4c])) + +def Q(input: bytearray) -> bytearray: + assert len(input) == 4 # needs to be 32 bit + + + return input + +def H(input: bytearray) -> bytearray: + + + return input + +def main(): + pass + +if __name__ == "__main__": + main()