class Des3Cipher extends AbstractCipher (View source)

The Cipher3DES class.

Methods

__construct()

Constructor.

string
encrypt(string $data, string $key = null, string $iv = null)

Method to encrypt a data string.

string
decrypt(string $data, string $key = null, string $iv = null)

Method to decrypt a data string.

string
getIVKey()

getIVKey

integer
getIVSize()

getIVSize

string
getMethod()

Method to get property Type

Details

__construct()

Constructor.

Exceptions

RuntimeException

string encrypt(string $data, string $key = null, string $iv = null)

Method to encrypt a data string.

Parameters

string $data The data string to encrypt.
string $key The private key.
string $iv The public key.

Return Value

string The encrypted data string.

Exceptions

InvalidArgumentException

string decrypt(string $data, string $key = null, string $iv = null)

Method to decrypt a data string.

Parameters

string $data The encrypted string to decrypt.
string $key The private key.
string $iv The public key.

Return Value

string The decrypted data string.

string getIVKey()

getIVKey

Return Value

string

integer getIVSize()

getIVSize

Return Value

integer

string getMethod()

Method to get property Type

Return Value

string