UNPKG

otpauth

Version:

One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers

13 lines (12 loc) 350 B
/** * Converts an integer to an ArrayBuffer. * @param {number} num Integer. * @returns {ArrayBuffer} ArrayBuffer. */ export function uintToBuf(num: number): ArrayBuffer; /** * Converts an ArrayBuffer to an integer. * @param {ArrayBuffer} buf ArrayBuffer. * @returns {number} Integer. */ export function uintFromBuf(buf: ArrayBuffer): number;