I have a session in MySQL with PHP of a somewhat advanced encryption in PHP using Sha512 , I'm having trouble reverting 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 Exit:
8B9C96128F1517479