ClassInterface JCryptPassword

Description

Joomla Platform Password Hashing Interface

  • since: 12.2

Located in /libraries/joomla/crypt/password.php (line 19)


	
			
Class Constant Summary
 BLOWFISH = '$2y$'
 JOOMLA = 'Joomla'
 MD5 = '$1$'
 PBKDF = '$pbkdf$'
Method Summary
 string create (string $password, [string $type = null])
 void getDefaultType ()
 void setDefaultType (string $type)
 boolean verify (string $password, string $hash)
Methods
create (line 39)

Creates a password hash

  • return: The hashed password.
  • since: 12.2
  • access: public
string create (string $password, [string $type = null])
  • string $password: The password to hash.
  • string $type: The type of hash. This determines the prefix of the hashing function.
getDefaultType (line 71)

Gets the default type

  • since: 12.3
  • access: public
void getDefaultType ()
setDefaultType (line 62)

Sets a default prefix

  • since: 12.3
  • access: public
void setDefaultType (string $type)
  • string $type: The prefix to set as default
verify (line 51)

Verifies a password hash

  • return: True if the password is valid, false otherwise.
  • since: 12.2
  • access: public
boolean verify (string $password, string $hash)
  • string $password: The password to verify.
  • string $hash: The password hash to check.
Class Constants
BLOWFISH = '$2y$' (line 21)
JOOMLA = 'Joomla' (line 23)
MD5 = '$1$' (line 27)
PBKDF = '$pbkdf$' (line 25)

Documentation generated on Tue, 19 Nov 2013 15:10:18 +0100 by phpDocumentor 1.4.3