Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
Copy link

Godtooro commented Mar 31, 2020

Awesome! Thank u! We owe you one.
All the best.

Copy link

IsraelIglesiasBIT commented Apr 3, 2020

And how encode a password?

I need to generate a settings file for Heidi with php for my all databases connections?

Copy link

jordihernandez commented Jun 30, 2020

Thank you!

Copy link

Pes8 commented Aug 2, 2021

Thank You all :)

Copy link

erickcomp commented Apr 25, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment