PasswordHash
PasswordHash
PasswordHash
I am an abstract component for encoding passwords for storage and comparing passwords against previously encoded strings
Metadata
createJavaClass()
Return a java class from the crypto libraries
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| className |
string |
Yes |
|
|
|
encode()
Convert a clear password to its encoded value
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| password |
string |
Yes |
|
|
Input password |
getJavaLoader()
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| None |
init()
constructor
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| None |
isAvailable()
Is the hashing agorithm available in this environment?
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| None |
Does the string match the format for this hash?
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| input |
string |
Yes |
|
|
String that may be an encoding of a password |
passwordMatch()
Compare a plain password against an encoded string
Arguments
| Name |
Type |
Required |
Default |
Options |
Description |
| password |
string |
Yes |
|
|
Input password |
| hashedPassword |
string |
Yes |
|
|
Previously encoded password string |
| bCheckHashStrength |
string |
No |
false |
|
If true, the hash strength of the hashed password must also match those generated by encode() |