blessing-skin-server/app/Services/Cipher/BaseCipher.php
2018-02-16 17:31:10 +08:00

23 lines
375 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));
}
}