-
-
Save trevorbicewebdesign/6b747ba8e00a2e9f8001 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function decodeHeidisql($hex) { | |
$string = ''; | |
$shift = substr($hex, -1, 1); | |
$hex = substr($hex, 0, -1); | |
for($i=0;$i<strlen($hex); $i += 2) { | |
$string .= chr(intval(substr($hex, $i, 2), 16)-$shift); | |
} | |
return $string; | |
} | |
echo decodeHeidisql('755A5A585C3D8141786B3C385E3A393'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a PHP version some people may find handy.
http://webdesign.trevorbice.com/