提交 696f24a2 编写于 作者: T tianhe1986

类函数定义。

Signed-off-by: Ntianhe1986 <w1s2j3229@163.com>
上级 e7ccc4dd
......@@ -4,5 +4,62 @@ namespace FatSmallTools;
class NavicatPassword
{
protected $version = 11;
public function __construct($version = 11)
{
$this->version = $version;
}
public function encrypt($string)
{
$result = FALSE;
switch ($this->version) {
case 11:
$result = $this->encryptEleven($string);
break;
case 12:
$result = $this->encryptTwelve($string);
break;
default:
break;
}
return $result;
}
protected function encryptEleven($string)
{
}
protected function encryptTwelve($string)
{
}
public function decrypt($string)
{
$result = FALSE;
switch ($this->version) {
case 11:
$result = $this->decryptEleven($string);
break;
case 12:
$result = $this->decryptTwelve($string);
break;
default:
break;
}
return $result;
}
protected function decryptEleven($string)
{
}
protected function decryptTwelve($string)
{
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册