24 lines
368 B
PHP
24 lines
368 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 ($this->hash($password, $salt) === $hash);
|
||
|
}
|
||
|
|
||
|
}
|