SproutCMS

This is the code documentation for the SproutCMS project

function serverKeyVerify()

Verify a signature which was generated by Security::serverKeySign

Usage

void Security::serverKeyVerify ( array $fields , string $signature );

Example

// In resource::download method
Security::serverKeyVerify(['id' => $id], $_GET['sig']);

Arguments

  1. array $fields
    Key-value fields making up the data to verify
  2. string $signature
    Incoming signature to check

Exceptions thrown

Return value

  • void