recover mysql passwords stored in HeidiSQL

JavaScript

/*
from https://gist.github.com/jpatters/4553139
*/

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;
}
/* get your encoded password from
   HeidiSQL menu "File -> Export settings"
*/
alert(heidiDecode('5772677235444E397A483'));