Interfaces, Classes, Traits and Enums
- SymmetricEncryption
Table of Contents
-
DECRYPTION_ERROR_MESSAGE
= 'Decryption error'
-
IV_ERROR_MESSAGE
= 'iv is false'
-
OPEN_SSL_ERROR_MESSAGE
= 'OpenSSL is not installed'
-
decrypt()
: string
-
encrypt()
: string
DECRYPTION_ERROR_MESSAGE
public
mixed
DECRYPTION_ERROR_MESSAGE
= 'Decryption error'
IV_ERROR_MESSAGE
public
mixed
IV_ERROR_MESSAGE
= 'iv is false'
OPEN_SSL_ERROR_MESSAGE
public
mixed
OPEN_SSL_ERROR_MESSAGE
= 'OpenSSL is not installed'
decrypt()
public
decrypt(string $cipherText, string $key[, string $cipher = 'AES-128-CBC' ]) : string
Parameters
-
$cipherText
: string
-
-
$key
: string
-
-
$cipher
: string
= 'AES-128-CBC'
-
Return values
string
—
encrypt()
public
encrypt(string $plainText, string $key[, string $cipher = 'AES-128-CBC' ]) : string
Parameters
-
$plainText
: string
-
-
$key
: string
-
-
$cipher
: string
= 'AES-128-CBC'
-
Return values
string
—