blessing-skin-server/app/Services/Cipher/ARGON2I.php

17 lines
309 B
PHP
Raw Normal View History

2019-12-25 16:28:24 +08:00
<?php
namespace App\Services\Cipher;
class ARGON2I extends BaseCipher
{
public function hash($value, $salt = '')
{
return password_hash($value, PASSWORD_ARGON2I);
}
public function verify($password, $hash, $salt = '')
{
return password_verify($password, $hash);
}
}