rfc:functiongetentropy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
rfc:functiongetentropy [2008/11/30 02:49] – created preinheimerrfc:functiongetentropy [2011/04/06 10:59] – external edit 127.0.0.1
Line 21: Line 21:
 <?php <?php
 $nonce = unpack('h', getEntropy(128)); $nonce = unpack('h', getEntropy(128));
-echo '<input type="hidden" name="csrf" value="' . $nonce . '">;+echo '<input type="hidden" name="csrf" value="' . $nonce . '">';
 $_SESSION['csrf'] = $nonce; $_SESSION['csrf'] = $nonce;
 </code> </code>
  
rfc/functiongetentropy.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1