object Codecs
- Alphabetic
- By Inheritance
- Codecs
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def hexStringToByte(hexString: String): Array[Byte]
Transform an hexadecimal String to a byte array.
- 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
- 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
- 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
- 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
- def toHex(array: Array[Byte]): Array[Char]
Converts a byte array into an array of characters that denotes a hexadecimal representation.
- def toHexString(array: Array[Byte]): String
Converts a byte array into a
String
that denotes a hexadecimal representation.
Utilities for Codecs operations.