$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 | string ornull |
null
|
Salt for password-based key derivation |
$limits | array ornull |
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.