blessing-skin-server/app/Services/Cipher/BaseCipher.php
2019-12-14 11:10:37 +08:00

22 lines
364 B
PHP

<?php
namespace App\Services\Cipher;
abstract class BaseCipher implements EncryptInterface
{
/**
* {@inheritdoc}
*/
public function hash($value, $salt = '')
{
}
/**
* {@inheritdoc}
*/
public function verify($password, $hash, $salt = '')
{
return hash_equals($hash, $this->hash($password, $salt));
}
}