abstract class Encrypter

Base encrypter.

Constants

DERIVATION_HASH

Derivation hash.

DERIVATION_ITERATIONS

Derivation iterations.

Methods

string
deriveKey(string $key, string $salt, int $keySize)

Generate a PBKDF2 key derivation of a supplied key.

Details

at line 39
protected string deriveKey(string $key, string $salt, int $keySize)

Generate a PBKDF2 key derivation of a supplied key.

Parameters

string $key The key to derive
string $salt The salt
int $keySize The desired key size

Return Value

string