Table of Contents
Constants
-
IV_LENGTH
= 16
Properties
-
$cipherKey
: string
-
$initializationVector
: string
-
$useRandomIV
: string
Methods
-
__construct()
: mixed
-
decrypt()
: mixed
-
encrypt()
: mixed
-
getCipherKey()
: string
-
getUseRandomIV()
: string
-
isBlank()
: mixed
-
pkcs5Pad()
: mixed
-
randomIV()
: mixed
-
setCipherKey()
: mixed
-
setUseRandomIV()
: mixed
-
unPadPKCS7()
: mixed
-
tryToJsonDecode()
: mixed
IV_LENGTH
public
mixed
IV_LENGTH
= 16
$cipherKey
protected
string
$cipherKey
$initializationVector
protected
string
$initializationVector
$useRandomIV
protected
string
$useRandomIV
__construct()
public
__construct(mixed $key, mixed $useRandomIV[, mixed $initializationVector = "0123456789012345" ]) : mixed
Parameters
-
$key
: mixed
-
-
$useRandomIV
: mixed
-
-
$initializationVector
: mixed
= "0123456789012345"
-
decrypt()
public
decrypt(mixed $cipherText[, mixed $logger = null ]) : mixed
Parameters
-
$cipherText
: mixed
-
-
$logger
: mixed
= null
-
encrypt()
public
encrypt(mixed $plainText) : mixed
Parameters
-
$plainText
: mixed
-
getCipherKey()
public
getCipherKey() : string
getUseRandomIV()
public
getUseRandomIV() : string
isBlank()
public
isBlank(mixed $word) : mixed
Parameters
-
$word
: mixed
-
pkcs5Pad()
public
pkcs5Pad(mixed $text, mixed $blockSize) : mixed
Parameters
-
$text
: mixed
-
-
$blockSize
: mixed
-
randomIV()
public
randomIV() : mixed
setCipherKey()
public
setCipherKey(string $cipherKey) : mixed
Parameters
-
$cipherKey
: string
-
setUseRandomIV()
public
setUseRandomIV(string $useRandomIV) : mixed
Parameters
-
$useRandomIV
: string
-
unPadPKCS7()
public
unPadPKCS7(mixed $data, mixed $blockSize) : mixed
Parameters
-
$data
: mixed
-
-
$blockSize
: mixed
-
tryToJsonDecode()
protected
tryToJsonDecode(mixed $value) : mixed
Parameters
-
$value
: mixed
-