mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
3cf19d8656
This pull request applies code style fixes from an analysis carried out by [StyleCI](https://github.styleci.io). --- For more information, click [here](https://github.styleci.io/analyses/8wKwbZ).
23 lines
375 B
PHP
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));
|
|
}
|
|
}
|