Skip to content

Instantly share code, notes, and snippets.

@nuno-andre
Created September 29, 2019 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuno-andre/aedb889a1602f65584dd9861f00ce65e to your computer and use it in GitHub Desktop.
Save nuno-andre/aedb889a1602f65584dd9861f00ce65e to your computer and use it in GitHub Desktop.
Decode HeidiSQL hashed passwords
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