HexEncoder

object HexEncoder extends Encoder[Array[Byte], String]

Hex decoder

trait Encoder[Array[Byte], String]
class Object
trait Matchable
class Any

Value members

Concrete methods

def encode(data: Array[Byte]): String
def encodeHex(data: Array[Byte], toLowerCase: Boolean): String

Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order

Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order

Value Params
data

a byte[] to convert to Hex characters

toLowerCase

should to lower case

Returns

A Array[Char] containing hexadecimal characters