blessing-skin-server/app/Services/Cipher/ARGON2I.php
2020-06-02 15:46:04 +08:00

17 lines
323 B
PHP

<?php
namespace App\Services\Cipher;
class ARGON2I extends BaseCipher
{
public function hash($value, $salt = ''): string
{
return password_hash($value, PASSWORD_ARGON2I);
}
public function verify($password, $hash, $salt = ''): bool
{
return password_verify($password, $hash);
}
}