UNPKG

xotp

Version:

One-Time Password (HOTP/TOTP) library for Node.js, Deno and Bun, with support for Google Authenticator.

5 lines (4 loc) 279 B
export declare function uintEncode(num: number): Uint8Array; export declare function uintDecode(bytes: Uint8Array | Buffer): number; export declare function uint64Encode(num: number | bigint): Uint8Array; export declare function uint64Decode(bytes: Uint8Array | Buffer): bigint;