implicit final class BCryptOps extends AnyVal
- Alphabetic
- By Inheritance
- BCryptOps
- AnyVal
- Any
- by AnyOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new BCryptOps(value: String)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (BCryptOps, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bcrypt(salt: String): String
Hashes a password using the OpenBSD bcrypt scheme.
Hashes a password using the OpenBSD bcrypt scheme.
- salt
the salt to hash with (generated using
BCryptOps.salt
)- returns
the hashed password
- Annotations
- @inline()
-
def
bcrypt(rounds: Int): String
Hashes a password using the OpenBSD bcrypt scheme.
Hashes a password using the OpenBSD bcrypt scheme.
- rounds
the log2 of the number of rounds of hashing to apply. The work factor increases as 2
rounds
.- returns
the hashed password
- Annotations
- @inline()
-
def
bcrypt: String
Hashes a password using the OpenBSD bcrypt scheme.
Hashes a password using the OpenBSD bcrypt scheme.
- returns
the hashed password
- Annotations
- @inline()
-
def
bcryptMatches(hash: String): Boolean
Whether a plaintext password matches a previously hashed one.
Whether a plaintext password matches a previously hashed one.
- hash
the previously-hashed password
- returns
true if the passwords match, false otherwise
- Annotations
- @inline()
- def ensuring(cond: (BCryptOps) ⇒ Boolean, msg: ⇒ Any): BCryptOps
- def ensuring(cond: (BCryptOps) ⇒ Boolean): BCryptOps
- def ensuring(cond: Boolean, msg: ⇒ Any): BCryptOps
- def ensuring(cond: Boolean): BCryptOps
- def formatted(fmtstr: String): String
-
def
future: Future[BCryptOps]
Creates an already completed
Future
containingvalue
.Creates an already completed
Future
containingvalue
.- returns
the already completed
Future
with the specified result
- Implicit
- This member is added by an implicit conversion from BCryptOps to AnyOps[BCryptOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
option: Option[BCryptOps]
Creates an
Option
containingvalue
.Creates an
Option
containingvalue
.- returns
Some(value)
ifvalue
is notnull
,None
otherwise
- Implicit
- This member is added by an implicit conversion from BCryptOps to AnyOps[BCryptOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
- Annotations
- @inline()
-
def
tap(f: (BCryptOps) ⇒ Unit): BCryptOps
Applies side-effectul method to
value
, returningvalue
.Applies side-effectul method to
value
, returningvalue
.- f
the side-effectful method to apply to
value
- returns
value
- Implicit
- This member is added by an implicit conversion from BCryptOps to AnyOps[BCryptOps] performed by method AnyOps in scail.commons.ops.
- Definition Classes
- AnyOps
-
def
toString(): String
- Definition Classes
- Any
- def →[B](y: B): (BCryptOps, B)