for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Main routine called from an application using this include.
*
* General usage:
* require_once('sha256.inc.php');
* $hashstr = spip_sha256('abc');
* @param string $str Chaîne dont on veut calculer le SHA
* @return string Le SHA de la chaîne
*/
function spip_sha256($str) {
return hash('sha256', $str);
}
* @param bool $ig_func
* @deprecated
function _nano_sha256($str, $ig_func = true) {
$ig_func
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return spip_sha256($str);
// 2009-07-23: Added check for function as the Suhosin plugin adds this routine.
if (!function_exists('sha256')) {
* Calcul du SHA256
function sha256($str, $ig_func = true) { return spip_sha256($str); }
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.