23 lines
472 B
PHP
23 lines
472 B
PHP
<?php
|
|
/**
|
|
* @Author: printempw
|
|
* @Date: 2016-03-13 11:53:47
|
|
* @Last Modified by: printempw
|
|
* @Last Modified time: 2016-03-18 17:23:08
|
|
*/
|
|
|
|
namespace Database;
|
|
|
|
interface EncryptInterface
|
|
{
|
|
/**
|
|
* Encrypt password, please define it to adapt to other encryption method
|
|
*
|
|
* @param string $raw_passwd
|
|
* @param string $username
|
|
* @return string, ecrypted password
|
|
*/
|
|
public function encryptPassword($raw_passwd, $username="");
|
|
|
|
}
|