WithAlgo

com.roundeights.hasher.WithAlgo
trait WithAlgo[A]

A helper class for performing some operation with various algorithms

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Algo
class Hasher

Members list

Type members

Classlikes

class HmacBuilder(val key: Array[Byte])

A fluent interface for generating HMACs

A fluent interface for generating HMACs

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

protected def withAlgo(algo: Algo): A

The actual operation to perform with an algorithm

The actual operation to perform with an algorithm

Attributes

Concrete methods

def bcrypt: A

BCrypt hashing, using 10 rounds

BCrypt hashing, using 10 rounds

Attributes

def bcrypt(rounds: Int): A

BCrypt hashing, with a specific number of rounds

BCrypt hashing, with a specific number of rounds

Attributes

def crc32: A

CRC32 algorithm

CRC32 algorithm

Attributes

def hmac(key: Array[Byte]): HmacBuilder

Generates an hmac builder

Generates an hmac builder

Attributes

def hmac(key: String): HmacBuilder

Generates an hmac builder

Generates an hmac builder

Attributes

def md5: A

MD5 hashing algorithm

MD5 hashing algorithm

Attributes

def pbkdf2(salt: Array[Byte], iterations: Int, keyLength: Int): A

Generates a SHA1 based PBKDF2 hash

Generates a SHA1 based PBKDF2 hash

Attributes

def pbkdf2(salt: String, iterations: Int, keyLength: Int): A

Generates a SHA1 based PBKDF2 hash

Generates a SHA1 based PBKDF2 hash

Attributes

def sha1: A

SHA1 hashing algorithm

SHA1 hashing algorithm

Attributes

def sha256: A

SHA256 hashing algorithm

SHA256 hashing algorithm

Attributes

def sha384: A

SHA384 hashing algorithm

SHA384 hashing algorithm

Attributes

def sha512: A

sha512 hashing algorithm

sha512 hashing algorithm

Attributes