Decrypt a string with a specific key
static string
decrypt
(string $string, string $key)
-
string
$string: the string to decrypt
-
string
$key: the key used to decrypt
Encrypt a string with a specific key
static string
encrypt
(string $string, string $key)
-
string
$string: the string to encrypt
-
string
$key: the key used to encrypt
Decrypt a string with mCrypt.
static string
mcryptDecrypt
(string $string, string $key)
-
string
$string: the string to decrypt
-
string
$key: the key used to decrypt string
Encrypt a string with mCrypt.
static string
mcryptEncrypt
(string $string, string $key)
-
string
$string: the string to encrypt
-
string
$key: the key used to encrypt string
Basic encrypt/decrypt algorithm.
static string
simpleCrypt
(string $str, string $key)
-
string
$str: the string to encrypt/decrypt
-
string
$key: the key used to encrypt/decrypt string (must be >= 8 characters)