mirror of
https://github.com/Relintai/crystal_cms_rcpp_fw.git
synced 2025-04-22 20:41:18 +02:00
22 lines
531 B
Plaintext
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");
|
|
}
|
|
}
|