Packages

implicit final class BCryptOps extends AnyVal

Extension methods for bcrypt password hashing.

Source
util.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BCryptOps
  2. AnyVal
  3. Any
Implicitly
  1. by AnyOps
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BCryptOps(value: String)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from BCryptOps to any2stringadd[BCryptOps] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (BCryptOps, B)
    Implicit
    This member is added by an implicit conversion from BCryptOps to ArrowAssoc[BCryptOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. 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()
  8. 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 2rounds.

    returns

    the hashed password

    Annotations
    @inline()
  9. 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()
  10. 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()
  11. def ensuring(cond: (BCryptOps) ⇒ Boolean, msg: ⇒ Any): BCryptOps
    Implicit
    This member is added by an implicit conversion from BCryptOps to Ensuring[BCryptOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (BCryptOps) ⇒ Boolean): BCryptOps
    Implicit
    This member is added by an implicit conversion from BCryptOps to Ensuring[BCryptOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): BCryptOps
    Implicit
    This member is added by an implicit conversion from BCryptOps to Ensuring[BCryptOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): BCryptOps
    Implicit
    This member is added by an implicit conversion from BCryptOps to Ensuring[BCryptOps] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from BCryptOps to StringFormat[BCryptOps] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. def future: Future[BCryptOps]

    Creates an already completed Future containing value.

    Creates an already completed Future containing value.

    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()
  17. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def option: Option[BCryptOps]

    Creates an Option containing value.

    Creates an Option containing value.

    returns

    Some(value) if value is not null, 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()
  20. def tap(f: (BCryptOps) ⇒ Unit): BCryptOps

    Applies side-effectul method to value, returning value.

    Applies side-effectul method to value, returning value.

    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
  21. def toString(): String
    Definition Classes
    Any
  22. def [B](y: B): (BCryptOps, B)
    Implicit
    This member is added by an implicit conversion from BCryptOps to ArrowAssoc[BCryptOps] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion AnyOps from BCryptOps to AnyOps[BCryptOps]

Inherited by implicit conversion any2stringadd from BCryptOps to any2stringadd[BCryptOps]

Inherited by implicit conversion StringFormat from BCryptOps to StringFormat[BCryptOps]

Inherited by implicit conversion Ensuring from BCryptOps to Ensuring[BCryptOps]

Inherited by implicit conversion ArrowAssoc from BCryptOps to ArrowAssoc[BCryptOps]

Ungrouped