mirror of https://gitee.com/topnuomi/aes-rsa
更新接口
This commit is contained in:
parent
a83541c1ff
commit
db289d2e58
|
@ -6,7 +6,7 @@ interface AES
|
||||||
{
|
{
|
||||||
public function password(string $password): AES;
|
public function password(string $password): AES;
|
||||||
|
|
||||||
public function encrypt(?array $data, string $password): string;
|
public function encrypt(string $data): string;
|
||||||
|
|
||||||
public function decrypt(string $data, string $password): ?array;
|
public function decrypt(string $data): string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ interface RSA
|
||||||
|
|
||||||
public function privateKey(): string;
|
public function privateKey(): string;
|
||||||
|
|
||||||
public function encrypt(?array $data): string;
|
public function encrypt(string $data, bool $public = true): string;
|
||||||
|
|
||||||
public function decrypt(string $data): ?array;
|
public function decrypt(string $data, bool $public = true): string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue