Crypt
in package
Table of Contents
- $crypt_algo : string
- $hash_algo : string
- $secretKey : string
- __construct() : mixed
- Crypt constructor.
- decrypt() : false|string
- decryptSerial() : mixed
- encrypt() : string
- encryptSerial() : string
- hash() : string
Properties
$crypt_algo
private
string
$crypt_algo
$hash_algo
private
string
$hash_algo
$secretKey
private
string
$secretKey
Methods
__construct()
Crypt constructor.
public
__construct(string $secretKey, string $crypt_algo, string $hash_algo) : mixed
Parameters
- $secretKey : string
- $crypt_algo : string
- $hash_algo : string
Return values
mixed —decrypt()
public
decrypt(string $encodedText) : false|string
Parameters
- $encodedText : string
Return values
false|string —decryptSerial()
public
decryptSerial(string $encodedVeriable) : mixed
Parameters
- $encodedVeriable : string
Tags
Return values
mixed —encrypt()
public
encrypt(string $text) : string
Parameters
- $text : string
Tags
Return values
string —encryptSerial()
public
encryptSerial( $veriable) : string
Parameters
Tags
Return values
string —hash()
private
hash( $text) : string