Skip to content

Kirby 5.0.4

$symmetricCrypto->secretKey()

Returns the binary secret key, optionally derived from the password or randomly generated

$symmetricCrypto->secretKey(string|null $salt = null, array|null $limits = null): string

Parameters

Name Type Default Description
$salt stringornull null Salt for password-based key derivation
$limits arrayornull null Processing limits for password-based key derivation

Return type

string

This method modifies the existing $symmetriccrypto object it is applied to and returns it again.

Parent class

Kirby\Toolkit\SymmetricCrypto