php generate hash sha256 and compute code example Example: php sha256 echo hash('sha256', $_POST['ppasscode']);