kadai

hash

package hash

Linear Supertypes
StringUtils, HashTypes, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. hash
  2. StringUtils
  3. HashTypes
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Base16 extends AnyRef

    Definition Classes
    HashTypes
  2. sealed trait Base32 extends AnyRef

    Definition Classes
    HashTypes
  3. type Hash[A] = AnyRef { ... /* 2 definitions in type refinement */ }

    Definition Classes
    HashTypes
  4. trait HashTypes extends AnyRef

  5. case class SHA1(bigInt: BigInt) extends Product with Serializable

    SHA1s can be constructed from BigInts, but are usually represented as base16 or base32 encoded numbers.

    SHA1s can be constructed from BigInts, but are usually represented as base16 or base32 encoded numbers.

    You can use base16 and base32 constants by importing kadai.Encoding._ and using the b16 and b32 macros, for instance:

    import kadai.Encoding._
    
    val b16sha = SHA1(b16"6b5966ddebba343869154db719556062c781bc73")
    val b32sha = SHA1(b32"NNMWNXPLXI2DQ2IVJW3RSVLAMLDYDPDT")
    
    b16sha == b32sha // true
  6. implicit class StringPadOps extends AnyRef

    Definition Classes
    StringUtils
  7. trait StringUtils extends AnyRef

Value Members

  1. object Base16 extends Hasher[Base16]

    Definition Classes
    HashTypes
  2. object Base32 extends Hasher[Base32]

    Definition Classes
    HashTypes
  3. object SHA1 extends Serializable

    Tag for computed SHA1 Strings

  4. val charset: Charset

  5. implicit val codec: Codec

Inherited from StringUtils

Inherited from HashTypes

Inherited from AnyRef

Inherited from Any

Ungrouped