UNPKG

@jovijovi/two-fa.js

Version:

A two-factor authentication(2FA) based on HOTP & TOTP written in TypeScript

8 lines (7 loc) 455 B
/// <reference types="node" /> import { IOptionFunc, IOptions } from './options'; export declare function GetCode(key: string, tm?: number): string; export declare function toBuffer(value: number): Buffer; export declare function EncodeKey<T extends IOptions>(raw: string, ...opt: IOptionFunc<T>[]): string; export declare function DecodeKey(key: string): ArrayBuffer; export declare function GenKey<T extends IOptions>(...opt: IOptionFunc<T>[]): string;