Codec
Functions for encoding and decoding data as Base64 and hexadecimal strings.
Definitions
def decodeBase64(s: String): Result[String, Vector[Int8]]§ SourceDecodes the given Base64 string s to bytes.
Returns Err if s is not valid Base64.
def decodeBase64String(s: String): Result[String, String]§ SourceDecodes the given Base64 string s to a UTF-8 string.
Returns Err if s is not valid Base64.
def decodeHex(s: String): Result[String, Vector[Int8]]§ SourceDecodes the given hex string s to bytes.
Returns Err if s is not a valid hex string.
def decodeHexString(s: String): Result[String, String]§ SourceDecodes the given hex string s to a UTF-8 string.
Returns Err if s is not a valid hex string.
def encodeBase64(v: Vector[Int8]): String§ SourceEncodes the given bytes v as a Base64 string.
def encodeBase64String(s: String): String§ SourceEncodes the given string s (as UTF-8 bytes) as a Base64 string.
def encodeHex(v: Vector[Int8]): String§ SourceEncodes the given bytes v as a lowercase hex string.
def encodeHexString(s: String): String§ SourceEncodes the given string s (as UTF-8 bytes) as a lowercase hex string.