JApplication/getHash: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
Provides a secure hash based on a seed | Provides a secure hash based on a seed | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
| Line 39: | Line 37: | ||
</source> | </source> | ||
<! removed transcluded page call, red link never existed > | <! removed transcluded page call, red link never existed > | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getHash | category=getHash | ||
category=JApplication | category=JApplication | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:16, 25 March 2017
Description
Provides a secure hash based on a seed
<! 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 transcluded page call, red link never existed >
Examples
Code Examples