Back to ApplicationHelper class

Method getHash

public static string
getHash
(mixed $seed)
Provides a secure hash based on a seed
Parameters
  • string $seed Seed string.
Returns
  • string A secure hash
Since
  • 3.2

Method getHash - Source code

/**
 * Provides a secure hash based on a seed
 *
 * @param   string  $seed  Seed string.
 *
 * @return  string  A secure hash
 *
 * @since   3.2
 */
public static function getHash($seed)
{
    return md5(Factory::getApplication()->get('secret') . $seed);
}