public function hashPassword($password, $staticSalt = null)
    {
        $dynamicSalt = UtilityAlgorithms::generateRandomString(22, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./');
        return crypt($password, '$2a$' . $this->cost . '$' . $dynamicSalt);
    }
public function hashPassword($password, $staticSalt = null)
    {
        $dynamicSalt = UtilityAlgorithms::generateRandomString(22, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./');
        return crypt($password, '$2a$' . $this->cost . '$' . $dynamicSalt);
    }
public function hashPassword ( $ password , $ staticSalt = null ) { $ dynamicSalt = UtilityAlgorithms :: generateRandomString ( 22 , 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./' ) ; return crypt ( $ password , '$2a$' . $ this -> cost . '$' . $ dynamicSalt ) ; }
Creates a BCrypt hash

@param string $password   The plaintext password to hash
@param string $staticSalt Optional static salt that will not be stored in the hashed password
@return string the result of the crypt() call
Creates a BCrypt hash