SproutCMS

This is the code documentation for the SproutCMS project

function hashPassword()

Return a hashed password, password algorithm, and salt, for inserting into the database

Usage

array Auth::hashPassword ( string $password [, int $algorithm ] );

Arguments

  1. string $password
    Plaintext password
  2. int $algorithm = NULL
    $algorithmPassword algorithm, Constants. If not specified, the default is used.

Return value

  • array
    0 => hash, 1 => algorithm, 2 => salt