1
I have a Mysql session with PHP of a somewhat advanced PHP encryption using Sha512, I’m having trouble reversing it to decrypt the data.
function gen_token($pass, $salt)
{
$salt = strtolower($salt);
$str = hash("sha512", $pass.$salt);
$len = strlen($salt);
print strtoupper(substr($str, $len, 17));
}
Example:
gen_token("123456789", "thalys");
Password output:
8B9C96128F1517479