Krypton
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- Krypton constructor.
- decrypt() : bool|false|string
- encrypt() : string
- iv_bytes() : mixed
Properties
$method
protected
mixed
$method
= 'AES-128-CTR'
$key
private
mixed
$key
Methods
__construct()
Krypton constructor.
public
__construct([bool $key = false ][, bool $method = false ]) : mixed
Parameters
- $key : bool = false
-
Encryption Key
- $method : bool = false
-
Encryption Method
decrypt()
public
decrypt(string $data) : bool|false|string
Parameters
- $data : string
Return values
bool|false|stringencrypt()
public
encrypt(string $data) : string
Parameters
- $data : string
Return values
stringiv_bytes()
protected
iv_bytes() : mixed