oslo-project / encoding

Encode binary data with hex, base32, and base64
https://encoding.oslojs.dev
MIT License
26 stars 2 forks source link

Upper case or lower case for hex encoding? #1

Closed pilcrowonpaper closed 3 months ago

pilcrowonpaper commented 4 months ago

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