API15

API15:JApplication/getHash

From Joomla! Documentation

Revision as of 21:51, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Provides a secure hash based on a seed <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowik...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Provides a secure hash based on a seed

[Edit Descripton]

Template:Description:JApplication/getHash

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 );
}

[Edit See Also] Template:SeeAlso:JApplication/getHash

Examples

<CodeExamplesForm />