Skip to content

Instantly share code, notes, and snippets.

View jpatters's full-sized avatar

Jordan jpatters

View GitHub Profile
@jpatters
jpatters / HeidiDecode.js
Last active October 1, 2024 14:25
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;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));

Keybase proof

I hereby claim:

  • I am jpatters on github.
  • I am jpatters (https://keybase.io/jpatters) on keybase.
  • I have a public key ASD39aBckgxOxlWeZQxEnLXKHqIvRRLytLZrk4XvH44qgQo

To claim this, I am signing this object:

fatal error: concurrent map iteration and map write
goroutine 78 [running]:
runtime.throw(0x1a89f07, 0x26)
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/panic.go:616 +0x81 fp=0xc4217a0f78 sp=0xc4217a0f58 pc=0x102bc71
runtime.mapiternext(0xc421325440)
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/hashmap.go:747 +0x55c fp=0xc4217a1008 sp=0xc4217a0f78 pc=0x100a71c
reflect.mapiternext(0xc421325440)
/usr/local/Cellar/go/1.10.1/libexec/src/runtime/hashmap.go:1223 +0x2b fp=0xc4217a1020 sp=0xc4217a1008 pc=0x100b83b
reflect.Value.MapKeys(0x19474c0, 0xc4224df410, 0x15, 0x16, 0xc4224df410, 0x15)
@jpatters
jpatters / HeidiDecode.js
Created August 4, 2014 19:15
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;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));