Package

kadai

hash

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. sealed trait Base16 extends AnyRef

    Permalink
    Definition Classes
    HashTypes
  2. sealed trait Base32 extends AnyRef

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

    Permalink
    Definition Classes
    HashTypes
  4. trait HashTypes extends AnyRef

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

    Permalink

    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

    Permalink
    Definition Classes
    StringUtils
  7. trait StringUtils extends AnyRef

    Permalink

Value Members

  1. object Base16 extends Hasher[Base16]

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

    Permalink
    Definition Classes
    HashTypes
  3. object SHA1 extends Serializable

    Permalink

    Tag for computed SHA1 Strings

  4. val charset: Charset

    Permalink
  5. implicit val codec: Codec

    Permalink

Inherited from StringUtils

Inherited from HashTypes

Inherited from AnyRef

Inherited from Any

Ungrouped