com.roundeights.hasher

Members list

Type members

Classlikes

object Algo extends WithAlgo[Algo]

Algo companion

Algo companion

Attributes

Companion
class
Supertypes
trait WithAlgo[Algo]
class Object
trait Matchable
class Any
Self type
Algo.type
class Algo extends WithPlainText[Digest]

A hashing algorithm

A hashing algorithm

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
trait BufferedTap extends Tap

A tap that buffers the characters before writing to the digest

A tap that buffers the characters before writing to the digest

Attributes

Supertypes
trait Tap
trait Digest
class Object
trait Matchable
class Any
Known subtypes
object Digest

Companion

Companion

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Digest.type
trait Digest

The base class for a hashing algorithm

The base class for a hashing algorithm

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Tap
trait BufferedTap
class SourceTap
class ReaderTap
Show all

A class designed for accumulating the values in a hash using a fold.

A class designed for accumulating the values in a hash using a fold.

This class attempts to enforce ordered digest creation by rendering each instance unusable the each time you add a value. Adding a value then returns a new instance, which must be used for adding more data.

Presenting an API like this allows for more efficient code, while still maintaining an outwardly immutable API. It also helps prevent race conditions by ensuring continued forward motion.

Attributes

Supertypes
class Object
trait Matchable
class Any
object Hash

Companion for the Hash class

Companion for the Hash class

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Hash.type
case class Hash(bytes: Array[Byte]) extends Equals

Represents a hash

Represents a hash

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Hasher extends WithPlainText[Hasher]

Helper methods for generating hashes

Helper methods for generating hashes

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Hasher.type
class Hasher extends WithAlgo[Digest]

A helper for generating crypto hashes from a value

A helper for generating crypto hashes from a value

Attributes

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

A list of implicit conversion methods

A list of implicit conversion methods

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Implicits.type
class InputStreamTap(val digest: MutableDigest, stream: InputStream) extends InputStream, BufferedTap

An InputStream that generates a hash

An InputStream that generates a hash

Attributes

Supertypes
trait BufferedTap
trait Tap
trait Digest
class InputStream
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
Show all
trait MutableDigest extends Digest

A digest that allows additional data to be added to it

A digest that allows additional data to be added to it

Attributes

Supertypes
trait Digest
class Object
trait Matchable
class Any
trait PlainText

The base class for plain text representations

The base class for plain text representations

Attributes

Supertypes
class Object
trait Matchable
class Any
class ReaderTap(val digest: MutableDigest, reader: Reader, codec: Codec) extends Reader, Tap

A Reader that generates a hash

A Reader that generates a hash

Attributes

Supertypes
trait Tap
trait Digest
class Reader
trait Closeable
trait AutoCloseable
trait Readable
class Object
trait Matchable
class Any
Show all
class SourceTap(val digest: MutableDigest, source: Source, codec: Codec) extends Source, BufferedTap

Wraps a source and generates a Source as data flows through it

Wraps a source and generates a Source as data flows through it

Attributes

Supertypes
trait BufferedTap
trait Tap
trait Digest
class Source
trait Closeable
trait AutoCloseable
trait Iterator[Char]
trait IterableOnceOps[Char, Iterator, Iterator[Char]]
trait IterableOnce[Char]
class Object
trait Matchable
class Any
Show all
trait Tap extends Digest

A tap is a specialized digest that decorates streams

A tap is a specialized digest that decorates streams

Attributes

Supertypes
trait Digest
class Object
trait Matchable
class Any
Known subtypes
trait BufferedTap
class SourceTap
class ReaderTap
trait WithAlgo[A]

A helper class for performing some operation with various algorithms

A helper class for performing some operation with various algorithms

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Algo
class Hasher
trait WithPlainText[A]

Performs some operation using a plain text value

Performs some operation using a plain text value

Attributes

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