authur1 boilerplate

This commit is contained in:
Christoph J. Scherr 2023-04-24 19:24:28 +02:00
parent b6d22ed3b8
commit e0ad241bc7
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 31 additions and 0 deletions

31
src/authur1.py Executable file
View File

@ -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 <software@cscherr.de>
@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()