PubNubCryptoCore
in package
AbstractYes
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
Constants
IV_LENGTH
public
mixed
IV_LENGTH
= 16
Properties
$cipherKey
protected
string
$cipherKey
$initializationVector
protected
string
$initializationVector
$useRandomIV
protected
string
$useRandomIV
Methods
__construct()
public
__construct(mixed $key, mixed $useRandomIV[, mixed $initializationVector = "0123456789012345" ]) : mixed
Parameters
- $key : mixed
- $useRandomIV : mixed
- $initializationVector : mixed = "0123456789012345"
decrypt()
public
abstract decrypt(string|object $cipherText[, Logger|null $logger = null ]) : mixed
Parameters
- $cipherText : string|object
- $logger : Logger|null = null
encrypt()
public
abstract encrypt(mixed $plainText) : mixed
Parameters
- $plainText : mixed
getCipherKey()
public
getCipherKey() : string
Return values
stringgetUseRandomIV()
public
getUseRandomIV() : string
Return values
stringisBlank()
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