JCryptCipherBlowfish

Extends \JCryptCipherMcrypt

JCrypt cipher for Blowfish encryption, decryption and key generation.

deprecated
since

12.1

deprecated

4.0 Without replacment use JCryptCipherCrypto

package

Joomla.Platform

Methods

__construct

Constructor.

__construct() 
inherited
since

12.1

throws

\RuntimeException

decrypt

Method to decrypt a data string.

decrypt(string $data, \JCryptKey $key) : string
inherited
since

12.1

throws

\InvalidArgumentException

Arguments

$data

stringThe encrypted string to decrypt.

$key

\JCryptKeyThe key object to use for decryption.

Response

stringThe decrypted data string.

encrypt

Method to encrypt a data string.

encrypt(string $data, \JCryptKey $key) : string
inherited
since

12.1

throws

\InvalidArgumentException

Arguments

$data

stringThe data string to encrypt.

$key

\JCryptKeyThe key object to use for encryption.

Response

stringThe encrypted data string.

generateKey

Method to generate a new encryption key object.

generateKey(array $options = array()) : \JCryptKey
inherited
since

12.1

throws

\InvalidArgumentException

Arguments

$options

arrayKey generation options.

Response

\JCryptKey

pbkdf2

PBKDF2 Implementation for deriving keys.

pbkdf2(string $p, string $s, integer $kl, integer $c = 10000, string $a = 'sha256') : string
inherited
link

https://en.wikipedia.org/wiki/PBKDF2

http://www.ietf.org/rfc/rfc2898.txt

since

12.1

Arguments

$p

stringPassword

$s

stringSalt

$kl

integerKey length

$c

integerIteration count

$a

stringHash algorithm

Response

stringThe derived key.

Properties

type

The mcrypt cipher constant.

inherited

Type(s)

integer

mode

The mcrypt block cipher mode.

inherited

Type(s)

integer

keyType

The JCrypt key type for validation.

inherited

Type(s)

string