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

16 lines
264 B
PHP
Raw Normal View History

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
}