class Encrypt
Simple encrypt/decrypt system
Methods
__construct(null|string $salt = null)
|
||
$this |
setSalt(string $salt)
|
|
string |
getSalt()
|
|
string |
encrypt(string $str = null, string $key = null)
Encryption function $Key="what" $MonTexte="Lorem ipsum." $str_encrypt = encrypt($MonTexte,$Key); |
|
string |
decrypt(string $str = null, string $key = null)
Decryption function |
Details
at line 42
public
__construct(null|string $salt = null)
at line 53
public $this
setSalt(string $salt)
at line 62
public string
getSalt()
at line 102
public string
encrypt(string $str = null, string $key = null)
Encryption function $Key="what" $MonTexte="Lorem ipsum." $str_encrypt = encrypt($MonTexte,$Key);
at line 132
public string
decrypt(string $str = null, string $key = null)
Decryption function
$Key="what" $Montexte = unencrypt($str_encrypt,$Key); $MonTexte="Lorem ipsum."