Tuskfish API V1.1.2
  • Package
  • Class

Packages

  • content
  • core
  • database
  • installation
  • security
  • user
  • utilities

Classes

  • TfUtils

Class TfUtils

Provides a variety of utility functions used by the core.

Holds utility functions that return lists of mimetypes, timezone offsets and similar necessary trivia.

Package: utilities
Copyright: The ImpressCMS Project http://www.impresscms.org/
License: GNU General Public License (GPL)
Author: marcan marcan@impresscms.org
Author: Simon Wilkinson simon@isengard.biz
Version: Release: 1.0
Since: 1.0
Located at trust_path/libraries/tuskfish/class/TfUtils.php

Methods summary

public static array
# checkPasswordStrength( string $password )

Evaluates the strength of a password to resist brute force cracking.

Evaluates the strength of a password to resist brute force cracking.

Issues warnings if deficiencies are found. Requires a minimum length of 15 characters. Due to revision of advice on best practices most requirements have been relaxed, as user behaviour tends to be counter-productive. Basically, it's up to you, the admin, to choose a sane password.

Parameters

$password
Input password.

Returns

array
Array of evaluation warnings as strings.
public static string
# generateSalt( integer $length = 64 )

Generate a psuedo-random salt of arbitrary length.

Generate a psuedo-random salt of arbitrary length.

This is used to salt user passwords, to make them more difficult to brute force crack.

Parameters

$length
Length of required salt.

Returns

string
$salt
public static array
# getListOfTimezones( )

Provide a list of timezone offsets.

Provide a list of timezone offsets.

Returns

array
Array of timezone offsets.
Tuskfish API V1.1.2 API documentation generated by ApiGen