object Codecs

Utilities for Codecs operations.

Source
Codecs.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Codecs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def hexStringToByte(hexString: String): Array[Byte]

    Transform an hexadecimal String to a byte array.

  2. def md5(text: String): String

    Computes the MD5 digest for a String.

    Computes the MD5 digest for a String.

    text

    the data to hash

    returns

    the MD5 digest, encoded as a hex string

  3. def md5(bytes: Array[Byte]): String

    Computes the MD5 digest for a byte array.

    Computes the MD5 digest for a byte array.

    bytes

    the data to hash

    returns

    the MD5 digest, encoded as a hex string

  4. def sha1(text: String): String

    Compute the SHA-1 digest for a String.

    Compute the SHA-1 digest for a String.

    text

    the text to hash

    returns

    the SHA-1 digest, encoded as a hex string

  5. def sha1(bytes: Array[Byte]): String

    Computes the SHA-1 digest for a byte array.

    Computes the SHA-1 digest for a byte array.

    bytes

    the data to hash

    returns

    the SHA-1 digest, encoded as a hex string

  6. def toHex(array: Array[Byte]): Array[Char]

    Converts a byte array into an array of characters that denotes a hexadecimal representation.

  7. def toHexString(array: Array[Byte]): String

    Converts a byte array into a String that denotes a hexadecimal representation.