API15

JApplication/getHash

From Joomla! Documentation

< API15:JApplication

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[edit]

Provides a secure hash based on a seed


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

Syntax[edit]

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

Returns[edit]

string

Defined in[edit]

libraries/joomla/application/application.php

Importing[edit]

jimport( 'joomla.application.application' );

Source Body[edit]

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


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

Examples[edit]

Code Examples[edit]