UNPKG

totpify

Version:

Advanced TOTP Library with enhanced security features and algorithm support

7 lines (6 loc) 426 B
import { HashAlgorithm } from './types'; export declare function normalizeSecret(secret: string): string; export declare function decodeBase32(base32: string): Uint8Array; export declare function generateHOTP(key: Uint8Array, counter: number, algorithm?: HashAlgorithm, digits?: number): string; export declare function getCurrentTimestamp(): number; export declare function getHashFunction(algorithm: HashAlgorithm): string;