mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-28 08:12:19 +08:00
17 lines
321 B
PHP
Executable File
17 lines
321 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Services\Cipher;
|
|
|
|
class BCRYPT extends BaseCipher
|
|
{
|
|
public function hash($value, $salt = ''): string
|
|
{
|
|
return password_hash($value, PASSWORD_BCRYPT);
|
|
}
|
|
|
|
public function verify($password, $hash, $salt = ''): bool
|
|
{
|
|
return password_verify($password, $hash);
|
|
}
|
|
}
|