CryptoModule
Table of Contents
Constants
-
CRYPTOR_VERSION
= 1
-
FALLBACK_CRYPTOR_ID
= '0000'
-
SENTINEL
= 'PNED'
Properties
-
$cryptorMap
: mixed
-
$defaultCryptorId
: string
Methods
-
__construct()
: mixed
-
aesCbcCryptor()
: self
-
decodeHeader()
: Header
-
decrypt()
: string|object
-
encodeHeader()
: string
-
encrypt()
: string
-
getCipherKey()
: mixed
-
legacyCryptor()
: self
-
parseInput()
: string
-
registerCryptor()
: self
-
stringify()
: string
CRYPTOR_VERSION
public
mixed
CRYPTOR_VERSION
= 1
FALLBACK_CRYPTOR_ID
public
mixed
FALLBACK_CRYPTOR_ID
= '0000'
SENTINEL
protected
mixed
SENTINEL
= 'PNED'
$cryptorMap
private
mixed
$cryptorMap
= []
$defaultCryptorId
private
string
$defaultCryptorId
__construct()
public
__construct(mixed $cryptorMap, string $defaultCryptorId) : mixed
Parameters
-
$cryptorMap
: mixed
-
-
$defaultCryptorId
: string
-
aesCbcCryptor()
public
static aesCbcCryptor(string $cipherKey, bool $useRandomIV) : self
Parameters
-
$cipherKey
: string
-
-
$useRandomIV
: bool
-
public
decodeHeader(string $header) : Header
Parameters
-
$header
: string
-
decrypt()
public
decrypt(string|object $input) : string|object
Parameters
-
$input
: string|object
-
Return values
string|object
public
encodeHeader(Payload $payload) : string
Parameters
-
$payload
: Payload
-
encrypt()
public
encrypt(mixed $data[, string|null $cryptorId = null ]) : string
Parameters
-
$data
: mixed
-
-
$cryptorId
: string|null
= null
-
getCipherKey()
public
getCipherKey() : mixed
legacyCryptor()
public
static legacyCryptor(string $cipherKey, bool $useRandomIV) : self
Parameters
-
$cipherKey
: string
-
-
$useRandomIV
: bool
-
public
parseInput(string|object $input) : string
Parameters
-
$input
: string|object
-
registerCryptor()
public
registerCryptor(Cryptor $cryptor[, string|null $cryptorId = null ]) : self
Parameters
-
$cryptor
: Cryptor
-
-
$cryptorId
: string|null
= null
-
stringify()
protected
stringify(mixed $data) : string
Parameters
-
$data
: mixed
-