Skip to content

Kirby 5.0.4

new SymmetricCrypto()

Initializes the keys used for crypto, both optional

new SymmetricCrypto(string|null $password = null, string|null $secretKey = null)

Parameters

Name Type Default Description
$password stringornull null Password to be derived into a $secretKey
$secretKey stringornull null 256-bit key, alternatively a $password can be used

Parent class

Kirby\Toolkit\SymmetricCrypto