banujan6/CSRF-handler

PHP version

NonoMETAYER opened this issue · 1 comments

If you want to avoid loading the page a bit long

In the CSRF file you can annotate the code below:

Its keeps your script from looking for nothing.

//if (phpversion() < 5.5)
{
$hashedToken = hash('sha256', base64_encode($keySet.$userAgent.$clientIp));
}
/*else
{
$hashedToken = base64_encode(password_hash(base64_encode($keySet.$userAgent.$clientIp), PASSWORD_BCRYPT));
}*/

Thanks

@NonoMETAYER Thank you so much for your input. We no longer maintain this repository. We strongly recommend using frameworks that has built-in security mechanisms.