new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php namespace ZN\Cryptography;
|
||||
/**
|
||||
* ZN PHP Web Framework
|
||||
*
|
||||
* "Simplicity is the ultimate sophistication." ~ Da Vinci
|
||||
*
|
||||
* @package ZN
|
||||
* @license MIT [http://opensource.org/licenses/MIT]
|
||||
* @author Ozan UYKUN [ozan@znframework.com]
|
||||
*/
|
||||
|
||||
interface CryptoInterface
|
||||
{
|
||||
/**
|
||||
* It encrypts the data.
|
||||
*
|
||||
* @param string $data
|
||||
* @param string|array $settings
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function encrypt(string $data, $settings = []) : string;
|
||||
|
||||
/**
|
||||
* It decrypts the data.
|
||||
*
|
||||
* @param string $data
|
||||
* @param string|array $settings
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function decrypt(string $data, $settings = []) : string;
|
||||
|
||||
/**
|
||||
* Generates a random password.
|
||||
*
|
||||
* @param int $length
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function keygen(int $length = 8) : string;
|
||||
}
|
||||
Reference in New Issue
Block a user