2016-07-21 22:01:57 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Services\Cipher;
|
|
|
|
|
|
|
|
interface EncryptInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Encrypt given string w/ or w/o salt
|
|
|
|
*
|
2017-01-08 10:48:46 +08:00
|
|
|
* @param string $value
|
2016-07-21 22:01:57 +08:00
|
|
|
* @param string $salt
|
2017-01-08 10:48:46 +08:00
|
|
|
* @return string
|
2016-07-21 22:01:57 +08:00
|
|
|
*/
|
2017-01-08 10:48:46 +08:00
|
|
|
public function encrypt($value, $salt = "");
|
2016-07-21 22:01:57 +08:00
|
|
|
}
|