lucee.Componentcfboom.lang.Object
cfboom.security.crypto.bcrypt.BCryptPasswordEncoder
Implementation of PasswordEncoder that uses the BCrypt strong hashing function. Clients can optionally supply a "strength" (a.k.a. log rounds in BCrypt) and a SecureRandom instance. The larger the strength parameter the more work will have to be done (exponentially) to hash the passwords. The default value is 10.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
javaLoader
|
true
|
false
|
|
any
|
strength
|
true
|
false
|
Constructor Summary | |
---|---|
init([numeric strength])
|
Method Summary | |
---|---|
string
|
encode(string rawPassword)
|
boolean
|
matches([string rawPassword], [string encodedPassword])
|
void
|
onDIComplete()
|
Methods inherited from class cfboom.lang.Object |
---|
$equals, getComponentName, getIdentityHashCode, getIdentityString, getMeta, hashCode, toString |
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
strength
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- loader@cbjavaloaderserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:setting:strength@cfboom-securityserializable
- trueMethod Detail |
---|
encode
in interface
PasswordEncoder
rawPassword
matches
in interface
PasswordEncoder
rawPassword
encodedPassword