UNPKG

@hiero-ledger/cryptography

Version:

Cryptographic utilities and primitives for the Hiero SDK

16 lines (14 loc) 271 B
/** * @param {string} text * @returns {Uint8Array} */ export function decode(text) { return Buffer.from(text, "base64"); } /** * @param {Uint8Array} data * @returns {string}; */ export function encode(data) { return Buffer.from(data).toString("base64"); }