blessing-skin-server/app/Services/Cipher/BaseCipher.php
2017-01-08 13:44:03 +08:00

24 lines
376 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));
}
}