API15

JUtility/getHash

< API15:JUtility

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Provides a secure hash based on a seed

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

getHash($seed)
Parameter Name Default Value Description
$seed Seed string

Returns

string

Defined in

libraries/joomla/utilities/utility.php

Importing

jimport( 'joomla.utilities.utility' );

Source Body

function getHash( $seed )
{
        $conf =& JFactory::getConfig();
        return md5( $conf->getValue('config.secret') .  $seed  );
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement