Methods

__toString()

__toString() : string

Returns

string

Decrypt using this key

decrypt(string $data) : string

abstract

Parameters

$data

string

Returns

string

Encrypt using this key

encrypt(string $data) : string

abstract

Parameters

$data

string

Returns

string

Retrieve openssl key resource

getOpensslKeyResource() : resource

Returns

resource

Get key size in bits

getSize() : int

Returns

int

Get string representation of this key

toString() : string

abstract

Returns

string

 Properties

 

Openssl details array

$details : array

 

Key Resource

$opensslKeyResource : resource

 

PEM formatted key

$pemString : string

 Constants

 

DEFAULT_KEY_SIZE

DEFAULT_KEY_SIZE