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; }