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 | string ornull |
null
|
Password to be derived into a $secretKey |
$secretKey | string ornull |
null
|
256-bit key, alternatively a $password can be used |