implicit final class BCryptExtensions extends AnyVal
BCrypt Extensions
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BCryptExtensions
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bcrypt: Bcrypt
-
def
compareFuture(data: Any, encrypted: Hash): Promise[Boolean]
Asynchronously compares the hash to the given data
Asynchronously compares the hash to the given data
- data
the given data to be compared
- encrypted
the encrypted data to be compared to.
- Annotations
- @inline()
-
def
genSaltFuture(rounds: Int = 10): Promise[Salt]
Asynchronously generates the salt
Asynchronously generates the salt
- rounds
the number of rounds to process the data for. (default - 10)
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
hashFuture(data: Any, salt: Salt): Promise[Hash]
Asynchronously creates a hash using the given data
Asynchronously creates a hash using the given data
- data
the given data to be hashed
- salt
the salt to be used to hash the password.
- Annotations
- @inline()
bcrypt.hash(data, salt, progress, cb)
Example: -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any