Generate a signature from a given set of fields, using the server key For a given set of fields, the signature will always be the same value. Returned signatures are always URL and HTML safe
This is the code documentation for the SproutCMS project
Search documentation |
function serverKeySign()Generate a signature from a given set of fields, using the server key For a given set of fields, the signature will always be the same value. Returned signatures are always URL and HTML safe
Usagestring Security::serverKeySign ( array $fields ); Example// In method which creates link to resource/download $sig = Security::serverKeySign(['id' => $id]); $file_url = "resource/download?id={$id}&sig={$sig}"; Arguments
Return value
|
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |