SproutCMS

This is the code documentation for the SproutCMS project

function compareStrings()

Constant-time string comparison

Usage

bool Security::compareStrings ( string $known_string , string $user_string );

Arguments

  1. string $known_string
    The known hash
  2. string $user_string
    The user supplied hash to check

Return value

  • bool
    True if the strings match, false if they don't