Hasher

com.roundeights.hasher.Hasher
See theHasher companion object
class Hasher extends WithAlgo[Digest]

A helper for generating crypto hashes from a value

Attributes

Companion
object
Graph
Supertypes
trait WithAlgo[Digest]
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

class HmacBuilder(val key: Array[Byte])

A fluent interface for generating HMACs

A fluent interface for generating HMACs

Attributes

Inherited from:
WithAlgo
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def salt(saltValue: Array[Byte]): Hasher

Adds a salt from an array of bytes

Adds a salt from an array of bytes

Attributes

def salt(saltValue: String): Hasher

Adds a salt from a string

Adds a salt from a string

Attributes

Inherited methods

def bcrypt(rounds: Int): Digest

BCrypt hashing, with a specific number of rounds

BCrypt hashing, with a specific number of rounds

Attributes

Inherited from:
WithAlgo
def bcrypt: Digest

BCrypt hashing, using 10 rounds

BCrypt hashing, using 10 rounds

Attributes

Inherited from:
WithAlgo
def crc32: Digest

CRC32 algorithm

CRC32 algorithm

Attributes

Inherited from:
WithAlgo
def hmac(key: String): HmacBuilder

Generates an hmac builder

Generates an hmac builder

Attributes

Inherited from:
WithAlgo
def hmac(key: Array[Byte]): HmacBuilder

Generates an hmac builder

Generates an hmac builder

Attributes

Inherited from:
WithAlgo
def md5: Digest

MD5 hashing algorithm

MD5 hashing algorithm

Attributes

Inherited from:
WithAlgo
def pbkdf2(salt: String, iterations: Int, keyLength: Int): Digest

Generates a SHA1 based PBKDF2 hash

Generates a SHA1 based PBKDF2 hash

Attributes

Inherited from:
WithAlgo
def pbkdf2(salt: Array[Byte], iterations: Int, keyLength: Int): Digest

Generates a SHA1 based PBKDF2 hash

Generates a SHA1 based PBKDF2 hash

Attributes

Inherited from:
WithAlgo
def sha1: Digest

SHA1 hashing algorithm

SHA1 hashing algorithm

Attributes

Inherited from:
WithAlgo
def sha256: Digest

SHA256 hashing algorithm

SHA256 hashing algorithm

Attributes

Inherited from:
WithAlgo
def sha384: Digest

SHA384 hashing algorithm

SHA384 hashing algorithm

Attributes

Inherited from:
WithAlgo
def sha512: Digest

sha512 hashing algorithm

sha512 hashing algorithm

Attributes

Inherited from:
WithAlgo