Created
September 29, 2019 21:31
-
-
Save nuno-andre/aedb889a1602f65584dd9861f00ce65e to your computer and use it in GitHub Desktop.
Decode HeidiSQL hashed passwords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def heidi_decode(enc): | |
enc, shift = enc[:-1], int(enc[-1]) | |
return ''.join(chr(int(enc[i:i+2], 16) - shift) | |
for i in range(0, len(enc), 2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment