crystal_cms_rcpp_fw/crystalcms_updated/app/Security/SampleImpl

22 lines
531 B
Plaintext

<?php
/**
* Copy this file needs to be in the Impl directory, rename it to Hasher.php,
* add this: <'password' => new \App\Security\Impl\Hasher(),>
* to config/security.php, without these brackets <>
* if there is already a line with 'password' ..., just replace it
*
*/
namespace App\Security\Impl;
use \App\Security\ISecurity;
class Hasher implements ISecurity
{
public function hashPassword($password)
{
return hash('sha256', "Chenge this to something like ACOUÉAfÖZ+'RP(ÖRH" + $password + "Change this too");
}
}