how to generate a sha512 hash in php code example Example: php sha256 echo hash('sha256', $_POST['ppasscode']);