Add Base32 Hex Extended option.

This commit is contained in:
peterc-s 2025-02-28 16:52:15 +00:00
parent d3357d2acd
commit 3057a20791
No known key found for this signature in database
GPG key ID: 439F1C3C7D4BCBD1
5 changed files with 214 additions and 4 deletions

23
src/core/lib/Base32.mjs Normal file
View file

@ -0,0 +1,23 @@
// import Utils from "../Utils.mjs";
/**
* Base32 resources.
*
* @author Peter C-S [petercs@purelymail.com]
* @license Apache-2.0
*/
/**
* Base32 alphabets.
*/
export const ALPHABET_OPTIONS = [
{
name: "Standard", // https://www.rfc-editor.org/rfc/rfc4648#section-6
value: "A-Z2-7=",
},
{
name: "Hex Extended", // https://www.rfc-editor.org/rfc/rfc4648#section-7
value: "0-9A-V=",
},
];