django-vue3-admin-web/node_modules/@smithy/util-base64/dist-es/constants.browser.js
2025-10-20 21:21:14 +08:00

10 lines
362 B
JavaScript

const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
export const alphabetByEncoding = Object.entries(chars).reduce((acc, [i, c]) => {
acc[c] = Number(i);
return acc;
}, {});
export const alphabetByValue = chars.split("");
export const bitsPerLetter = 6;
export const bitsPerByte = 8;
export const maxLetterValue = 0b111111;