JUtility/getHash: Difference between revisions
From Joomla! Documentation
m removing red link to edit, no existant pages |
m preparing for archive only |
||
| Line 45: | Line 45: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=getHash | category=getHash | ||
category=JUtility | category=JUtility | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 01:15, 25 March 2017
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