class CipherBlowfish extends AbstractMcryptCipher (View source)

deprecated PHP7 already deprecated mcrypt extension

The BlowfishChipher class.

Methods

__construct()

Constructor.

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

Method to decrypt a data string.

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

Method to encrypt a data string.

string
getIVKey()

getIVKey

integer
getIVSize()

getIVSize

Details

__construct()

Constructor.

Exceptions

RuntimeException

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 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 getIVKey()

getIVKey

Return Value

string

integer getIVSize()

getIVSize

Return Value

integer