Skip to content

Kirby 4.2.0

$symmetriccrypto->secretKey()

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

$symmetriccrypto->secretKey(?string $salt = null, ?array $limits = null): string

Parameters

Name Type Default Description
$salt string|null null Salt for password-based key derivation
$limits array|null null Processing limits for password-based key derivation

Return type

string

Parent class

Kirby\Toolkit\SymmetricCrypto