Crypt
class Crypt implements CryptInterface (View source)
The Crypt class.
Methods
string
encrypt(string $string, string $key = null, string $iv = null)
encrypt
string
decrypt(string $string, string $key = null, string $iv = null)
decrypt
boolean
verify(string $string, string $hash, string $key = null, string $iv = null)
match
string
getIV()
Method to get property Public
null|string
getKey()
Method to get property Private
Details
at line line 50
__construct(CipherInterface $cipher, string $key = null, string $iv = null)
Class init.
at line line 71
string
encrypt(string $string, string $key = null, string $iv = null)
encrypt
at line line 90
string
decrypt(string $string, string $key = null, string $iv = null)
decrypt
at line line 110
boolean
verify(string $string, string $hash, string $key = null, string $iv = null)
match
at line line 120
string
getIV()
Method to get property Public
at line line 144
null|string
getKey()
Method to get property Private