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

24 lines
368 B
PHP
Raw Normal View History

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