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).
25 lines
477 B
PHP
25 lines
477 B
PHP
<?php
|
|
|
|
namespace App\Services\Cipher;
|
|
|
|
interface EncryptInterface
|
|
{
|
|
/**
|
|
* Encrypt given string with given salt.
|
|
*
|
|
* @param string $value
|
|
* @param string $salt
|
|
* @return string
|
|
*/
|
|
public function hash($value, $salt = '');
|
|
|
|
/**
|
|
* Verifies that the given hash matches the given password.
|
|
*
|
|
* @param string $password
|
|
* @param string $hash
|
|
* @return bool
|
|
*/
|
|
public function verify($password, $hash);
|
|
}
|