mirror of
https://git.soft.fish/val/MicroCorruption.git
synced 2024-11-22 12:25:57 +00:00
Move this to a new folder for bad python
This commit is contained in:
parent
89a40c6884
commit
1d90ffc2f2
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# TODO: Actually break the hashes?
|
||||
# May not be necessary, just gotta find a way to crash it. Harumph.
|
||||
# TODONE in chernobreak.py
|
||||
|
||||
def hash(byts):
|
||||
def hash(chars):
|
||||
ret = 0;
|
||||
for c in byts:
|
||||
for c in chars:
|
||||
ret += c
|
||||
ret = ((ret << 5) - ret) & 0xffff
|
||||
return ret
|
Loading…
Reference in New Issue
Block a user