Documentation

OpenSSLHandler extends BaseHandler
in package

Encryption handling for OpenSSL library

Table of Contents

$cipher  : string
Cipher to use
$digest  : string
HMAC digest to use
$key  : string
Starter key
$logger  : LoggerInterface
Logger instance to record error messages and warnings.
__construct()  : mixed
Constructor
__get()  : mixed
__get() magic, providing readonly access to some of our properties
__isset()  : bool
__isset() magic, providing checking for some of our properties
decrypt()  : mixed
{@inheritDoc}
encrypt()  : mixed
{@inheritDoc}
substr()  : string
Byte-safe substr()

Properties

Methods

__construct()

Constructor

public __construct([Encryption|null $config = null ]) : mixed
Parameters
$config : Encryption|null = null
Return values
mixed

__get()

__get() magic, providing readonly access to some of our properties

public __get(string $key) : mixed
Parameters
$key : string

Property name

Return values
mixed

__isset()

__isset() magic, providing checking for some of our properties

public __isset(string $key) : bool
Parameters
$key : string

Property name

Return values
bool

decrypt()

{@inheritDoc}

public decrypt(mixed $data[, mixed $params = null ]) : mixed
Parameters
$data : mixed
$params : mixed = null
Return values
mixed

encrypt()

{@inheritDoc}

public encrypt(mixed $data[, mixed $params = null ]) : mixed
Parameters
$data : mixed
$params : mixed = null
Return values
mixed

substr()

Byte-safe substr()

protected static substr(string $str, int $start[, int $length = null ]) : string
Parameters
$str : string
$start : int
$length : int = null
Return values
string

Search results