RFC 4648 uses upper case letters in the example, but it's clear that the scheme is supposed to be case-insensitive. Maybe it's best to export encodeHexUpperCase() and encodeHexLowerCase(), while exporting a single decodeHex() that supports mixed encoding
RFC 4648 uses upper case letters in the example, but it's clear that the scheme is supposed to be case-insensitive. Maybe it's best to export
encodeHexUpperCase()
andencodeHexLowerCase()
, while exporting a singledecodeHex()
that supports mixed encoding