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

20 lines
378 B
PHP

<?php
namespace App\Services\Cipher;
class PHP_PASSWORD_HASH extends BaseCipher
{
/**
* Use password_hash() to create hash.
*/
public function hash($value, $salt = "")
{
return password_hash($value, PASSWORD_DEFAULT);
}
public function verify($password, $hash, $salt = "")
{
return password_verify($password, $hash);
}
}