Yngvarr

Generation

generate functionSun, 29 Jan 2023

personal hash

function personal_hash(string $password, string $salt, int $iterations, int $length): string { return substr(hash('sha256', $salt . hash('whirlpool', $password) . $salt), 0, $length); }

Questions about programming?Chat with your personal AI assistant