mega commit

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-08-20 20:47:17 +02:00
parent 4860179a1c
commit a578dd26a0
13 changed files with 608 additions and 305 deletions

5
libs/functions.py Normal file
View File

@@ -0,0 +1,5 @@
def nxhash(text:str) -> str: # @BenVida StackOverflow
hash=0
for ch in text:
hash = ( hash*281 ^ ord(ch)*997) & 0xFFFFFFFF
return str(hex(hash)[2:].upper().zfill(8))