\JCryptPasswordSimple
Joomla Platform Password Crypter
Synopsis
class JCryptPasswordSimple
implements
JCryptPassword
{
- // members
- protected $cost;
- protected $defaultType;
- // methods
- public mixed create()
- public void setCost()
- protected string getSalt()
- public boolean verify()
- public void setDefaultType()
- public string getDefaultType()
Hierarchy
Implements
Constants
Name | Value |
---|---|
BLOWFISH | '$2y$' |
JOOMLA | 'Joomla' |
PBKDF | '$pbkdf$' |
MD5 | '$1$' |
Members
protected
- $cost — integer
- $defaultType — string
Methods
protected
- getSalt() — Generates a salt of specified length. The salt consists of characters in the set [./0-9A-Za-z].
public
- create() — Creates a password hash
- getDefaultType() — Gets the default type
- setCost() — Sets the cost parameter for the generated hash for algorithms that use a cost factor.
- setDefaultType() — Sets a default type
- verify() — Verifies a password hash