API15

API15:JApplication/getHash

From Joomla! Documentation

Revision as of 13:32, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)

Description

Provides a secure hash based on a seed

[<! removed edit link to red link >]

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

Syntax

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

Returns

string

Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

public static 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

<CodeExamplesForm />