JUserHelper::getSalt
Returns a salt for the appropriate kind of password encryption.
Optionally takes a seed and a plaintext password, to extract the seed of an existing password, or for encryption types that use the plaintext in the generation of the salt.
Signature
public function getSalt([string
$encryption = 'md5-hex',
[string
$seed = '',
[string
$plaintext = '']]] )
Parameters
-
$encryption
- The kind of password encryption to use.
-
$seed
- The seed to get the salt from (probably a
-
$plaintext
- The plaintext password that we're generating
Returns
- string
- The generated or extracted salt.