new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<?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]
|
||||
*/
|
||||
|
||||
use ZN\Config;
|
||||
|
||||
class CryptoMapping
|
||||
{
|
||||
/**
|
||||
* Get project key
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $key;
|
||||
|
||||
/**
|
||||
* Magic constructor
|
||||
*
|
||||
* @param void
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->key = Config::get('Project', 'key');
|
||||
}
|
||||
|
||||
/**
|
||||
* It encrypts the data.
|
||||
*
|
||||
* @param string $data
|
||||
* @param array $settings
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function encrypt($data, $settings)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* It decrypts the data.
|
||||
*
|
||||
* @param string $data
|
||||
* @param array $settings
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function decrypt($data, $settings)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a random password.
|
||||
*
|
||||
* @param int $length
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function keygen($length)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user