public function validateAgainstHash($buffer, $hash)
    {
        // Already loaded phpass?
        if (null === self::$passwordHash) {
            include_once DOOZR_DOCUMENT_ROOT.'Service/Doozr/Password/Service/Lib/Hash.php';
            /* @var self::$passwordHash Doozr_Password_Service_Hash */
            self::$passwordHash = new Doozr_Password_Service_Hash(8, false);
        }

        // Return validation status
        return self::$passwordHash->CheckPassword($buffer, $hash);
    }
public function validateAgainstHash($buffer, $hash)
    {
        // Already loaded phpass?
        if (null === self::$passwordHash) {
            include_once DOOZR_DOCUMENT_ROOT.'Service/Doozr/Password/Service/Lib/Hash.php';
            /* @var self::$passwordHash Doozr_Password_Service_Hash */
            self::$passwordHash = new Doozr_Password_Service_Hash(8, false);
        }

        // Return validation status
        return self::$passwordHash->CheckPassword($buffer, $hash);
    }
public function validateAgainstHash ( $ buffer , $ hash ) { // Already loaded phpass? if ( null === self :: $ passwordHash ) { include_once DOOZR_DOCUMENT_ROOT . 'Service/Doozr/Password/Service/Lib/Hash.php' ; /* @var self::$passwordHash Doozr_Password_Service_Hash */ self :: $ passwordHash = new Doozr_Password_Service_Hash ( 8 , false ) ; } // Return validation status return self :: $ passwordHash -> CheckPassword ( $ buffer , $ hash ) ; }
validates a given password against a given hash.

This method is intend to validation a given password against a given hash.

@param string $buffer Password to validation against hash
@param string $hash   Hash used to validation password against

@author Benjamin Carl <opensource@clickalicious.de>

@return bool True if password matches hash, otherwise false Instance of Passwordhash (service)
validates a given password against a given hash .