PasswordHashAPI

tsec.passwordhashers.PasswordHashAPI
trait PasswordHashAPI[A]

Attributes

Source
PasswordHashAPI.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def checkpw[F[_] : Functor](p: String, hash: PHash[A])(implicit evidence$1: Functor[F], P: PasswordHasher[F, A]): F[VerificationStatus]

Check against a bcrypt hash in a pure way

Check against a bcrypt hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpw[F[_] : Functor](p: Array[Char], hash: PHash[A])(implicit evidence$2: Functor[F], P: PasswordHasher[F, A]): F[VerificationStatus]

Check against a password hash in a pure way

Check against a password hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpw[F[_] : Functor](p: Array[Byte], hash: PHash[A])(implicit evidence$3: Functor[F], P: PasswordHasher[F, A]): F[VerificationStatus]

Check against a password hash in a pure way

Check against a password hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpwBool[F[_]](p: String, hash: PHash[A])(implicit P: PasswordHasher[F, A]): F[Boolean]

Check against a bcrypt hash in a pure way

Check against a bcrypt hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpwBool[F[_]](p: Array[Char], hash: PHash[A])(implicit P: PasswordHasher[F, A]): F[Boolean]

Check against a password hash in a pure way

Check against a password hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpwBool[F[_]](p: Array[Byte], hash: PHash[A])(implicit P: PasswordHasher[F, A]): F[Boolean]

Check against a password hash in a pure way

Check against a password hash in a pure way

It may raise an error for a malformed hash

Attributes

Source
PasswordHashAPI.scala
def checkpwUnsafe(p: String, hash: PHash[A])(implicit P: PasswordHasher[Id, A]): Boolean

Check against a password hash in an unsafe manner.

Check against a password hash in an unsafe manner.

It may throw an exception for a malformed password

Attributes

Returns
Source
PasswordHashAPI.scala
def checkpwUnsafe(p: Array[Byte], hash: PHash[A])(implicit P: PasswordHasher[Id, A]): Boolean

Check against a passwordhash in an unsafe manner.

Check against a passwordhash in an unsafe manner.

It may throw an exception for a malformed password

Attributes

Returns
Source
PasswordHashAPI.scala
def checkpwUnsafe(p: Array[Char], hash: PHash[A])(implicit P: PasswordHasher[Id, A]): Boolean

Check against a passwordhash in an unsafe manner.

Check against a passwordhash in an unsafe manner.

It may throw an exception for a malformed password

Attributes

Returns
Source
PasswordHashAPI.scala
def hashpw[F[_]](p: String)(implicit P: PasswordHasher[F, A]): F[PHash[A]]

Attributes

Source
PasswordHashAPI.scala
def hashpw[F[_]](p: Array[Char])(implicit P: PasswordHasher[F, A]): F[PHash[A]]

Hash a password in a char array then clear the data in the password original array, as well as the byte encoding change, but in a pure fashion because side effects suck butt.

Hash a password in a char array then clear the data in the password original array, as well as the byte encoding change, but in a pure fashion because side effects suck butt.

Attributes

Source
PasswordHashAPI.scala
def hashpw[F[_]](p: Array[Byte])(implicit P: PasswordHasher[F, A]): F[PHash[A]]

Hash a password in utf-8 encoded bytes, then clear the data in the password, but in a pure way.

Hash a password in utf-8 encoded bytes, then clear the data in the password, but in a pure way.

Value parameters

p

the encoded password

Attributes

Returns
Source
PasswordHashAPI.scala
def hashpwUnsafe(p: String)(implicit P: PasswordHasher[Id, A]): PHash[A]

Attributes

Source
PasswordHashAPI.scala
def hashpwUnsafe(p: Array[Char])(implicit P: PasswordHasher[Id, A]): PHash[A]

Hash a password in a char array then clear the data in the password original array, as well as the byte encoding change.

Hash a password in a char array then clear the data in the password original array, as well as the byte encoding change.

Value parameters

p

the encoded password

Attributes

Returns
Source
PasswordHashAPI.scala
def hashpwUnsafe(p: Array[Byte])(implicit P: PasswordHasher[Id, A]): PHash[A]

Hash a password in utf-8 encoded bytes, then clear the data in the password

Hash a password in utf-8 encoded bytes, then clear the data in the password

Value parameters

p

the encoded password

Attributes

Returns
Source
PasswordHashAPI.scala