22 lines
466 B
PHP
22 lines
466 B
PHP
<?php
|
|
/**
|
|
* @Author: printempw
|
|
* @Date: 2016-04-03 14:43:46
|
|
* @Last Modified by: printempw
|
|
* @Last Modified time: 2016-04-05 14:09:53
|
|
*/
|
|
|
|
namespace Cipher;
|
|
|
|
interface EncryptInterface
|
|
{
|
|
/**
|
|
* Encrypt given string, please define it to adapt to other encryption method
|
|
*
|
|
* @param string $raw_passwd
|
|
* @param string $salt
|
|
* @return string, ecrypted password
|
|
*/
|
|
public static function encrypt($raw_passwd, $salt = "");
|
|
}
|