@wtasnorg/node-lib / encode32
encode32(
input,charset?):string
Defined in: base32.ts:81
Encode a string to Base32.
string
The string to encode.
The charset variant to use (default: “rfc4648”).
"rfc4648" |
"hex" |
"crockford" |
string
The Base32 encoded string.
import { encode32 } from "./base32.js";
encode32("Hello");
// => "JBSWY3DP"
encode32("test", "hex");
// => "EHMP6SS="