PasswordHasher

tsec.passwordhashers.PasswordHasher
trait PasswordHasher[F[_], A]

Attributes

Source
PasswordHasher.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait IdPasswordHasher[A]

Members list

Value members

Abstract methods

def checkpwBool(p: Array[Char], hash: PHash[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
PasswordHasher.scala
def checkpwBool(p: Array[Byte], hash: PHash[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
PasswordHasher.scala
def hashpw(p: Array[Char]): 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
PasswordHasher.scala
def hashpw(p: Array[Byte]): 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
PasswordHasher.scala

Concrete methods

final def checkpw(p: String, hash: PHash[A])(implicit F: Functor[F]): 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
PasswordHasher.scala
def checkpw(p: Array[Char], hash: PHash[A])(implicit F: Functor[F]): 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
PasswordHasher.scala
def checkpw(p: Array[Byte], hash: PHash[A])(implicit F: Functor[F]): 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
PasswordHasher.scala
final def checkpwBool(p: String, hash: PHash[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
PasswordHasher.scala
final def checkpwUnsafe(p: String, hash: PHash[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
PasswordHasher.scala
final def checkpwUnsafe(p: Array[Byte], hash: PHash[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
PasswordHasher.scala
final def checkpwUnsafe(p: Array[Char], hash: PHash[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
PasswordHasher.scala
final def hashpw(p: String): F[PHash[A]]

Attributes

Source
PasswordHasher.scala
final def hashpwUnsafe(p: String): PHash[A]

Attributes

Source
PasswordHasher.scala
final def hashpwUnsafe(p: Array[Char]): 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
PasswordHasher.scala
final def hashpwUnsafe(p: Array[Byte]): 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
PasswordHasher.scala