Overview

Packages

  • awl
    • AuthPlugin
    • AwlDatabase
    • Browser
    • classEditor
    • DataEntry
    • DataUpdate
    • EMail
    • iCalendar
    • MenuSet
    • PgQuery
    • Session
    • Translation
    • User
    • Utilities
    • Validation
    • vCalendar
    • vComponent
    • XMLDocument
    • XMLElement
  • None

Functions

  • awl_version
  • check_by_regex
  • dbg_error_log
  • dbg_log_array
  • define_byte_mappings
  • deprecated
  • fatal
  • force_utf8
  • get_fields
  • gzdecode
  • olson_from_tzstring
  • param_to_global
  • quoted_printable_encode
  • replace_uri_params
  • session_salted_md5
  • session_salted_sha1
  • session_simple_md5
  • session_validate_password
  • trace_bug
  • uuid
  • Overview
  • Package
  • Function

Function session_salted_sha1

Make a salted SHA1 string, given a string and (possibly) a salt. PHP5 only (although it could be made to work on PHP4 (@see http://www.openldap.org/faq/data/cache/347.html). The algorithm used here is compatible with OpenLDAP so passwords generated through this function should be able to be migrated to OpenLDAP by using the part following the second '*', i.e. the '{SSHA}....' part.

If no salt is supplied we will generate a random one.

Package: awl\Utilities
Copyright: Catalyst IT Ltd, Morphoss Ltd http://www.morphoss.com/
License: GNU LGPL version 3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at AWLUtilities.php
Parameters summary
string $instr The string to be salted and SHA1'd
string $salt = "" Some salt to sprinkle into the string to be SHA1'd so we don't get the same PW always hashing to the same value.
Return value summary
string A *, the salt, a * and the SHA1 of the salted string, as in SALTSALTEDHASH
API documentation generated by ApiGen