初始化

This commit is contained in:
TOP糯米 2020-10-21 10:22:28 +08:00
parent 382ebf917f
commit 5256386cdb
4 changed files with 42 additions and 0 deletions

12
src/AES.php Normal file
View File

@ -0,0 +1,12 @@
<?php
namespace encrypt;
interface AES
{
public function password(string $password): AES;
public function encrypt(?array $data, string $password): string;
public function decrypt(string $data, string $password): ?array;
}

14
src/RSA.php Normal file
View File

@ -0,0 +1,14 @@
<?php
namespace encrypt;
interface RSA
{
public function publicKey(): string;
public function privateKey(): string;
public function encrypt(?array $data): string;
public function decrypt(string $data): ?array;
}

8
src/classes/AES.php Normal file
View File

@ -0,0 +1,8 @@
<?php
namespace encrypt\classes;
class AES implements \encrypt\AES
{
}

8
src/classes/RSA.php Normal file
View File

@ -0,0 +1,8 @@
<?php
namespace encrypt\classes;
class RSA implements \encrypt\RSA
{
}