Skip to content

Instantly share code, notes, and snippets.

@laserpez
Last active February 4, 2020 09:46
Show Gist options
  • Save laserpez/a40119c96cc88317a3a51b434554138f to your computer and use it in GitHub Desktop.
Save laserpez/a40119c96cc88317a3a51b434554138f to your computer and use it in GitHub Desktop.
Password recovery for HeidiSQL
<!doctype html>
<html>
<body>
<script>
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;
}
document.write(heidiDecode('[ENCRYPTED PASSWORD'));
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment