From db289d2e58cdbc4015a38f5f5d764446a65a9ea7 Mon Sep 17 00:00:00 2001 From: topnuomi <1130395124@qq.com> Date: Wed, 21 Oct 2020 11:12:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AES.php | 4 ++-- src/RSA.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AES.php b/src/AES.php index 2c81f2a..998b1a5 100644 --- a/src/AES.php +++ b/src/AES.php @@ -6,7 +6,7 @@ interface 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; } diff --git a/src/RSA.php b/src/RSA.php index 8426cf8..c936287 100644 --- a/src/RSA.php +++ b/src/RSA.php @@ -8,7 +8,7 @@ interface RSA 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; }