SproutCMS

This is the code documentation for the SproutCMS project

function getCode()

Calculate what the code for a given secret/time should be

Usage

string $GoogleAuthenticator->getCode ( string $secret , int $time );

Arguments

  1. string $secret
    The secret key, as a base32 string
  2. int $time
    Unix timestamp, floored to a 30-sec increment

Return value

  • string
    The calculated code, numeric