php calculate xml digest sha 256 code example Example: php sha256 echo hash('sha256', $_POST['ppasscode']);