API16:JUtility/getHash
From Joomla! Documentation
Description
Provides a secure hash based on a seed
Syntax
static 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
public static function getHash($seed)
{
$conf = &JFactory::getConfig();
return md5($conf->getValue('config.secret') . $seed );
}
Examples
Code Examples