mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-28 08:12:19 +08:00
12 lines
208 B
PHP
12 lines
208 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Services\Cipher;
|
||
|
|
||
|
class SALTED2SHA256 extends BaseCipher
|
||
|
{
|
||
|
public function hash($value, $salt = ''): string
|
||
|
{
|
||
|
return hash('sha256', hash('sha256', $value).$salt);
|
||
|
}
|
||
|
}
|