mirror of https://gitee.com/topnuomi/aes-rsa
初始化
This commit is contained in:
parent
382ebf917f
commit
5256386cdb
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace encrypt\classes;
|
||||
|
||||
class AES implements \encrypt\AES
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace encrypt\classes;
|
||||
|
||||
class RSA implements \encrypt\RSA
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue