UNPKG

@mybucks.online/core

Version:

Core library for Mybucks.online — a seedless wallet and gifting wallet: disposable gift wallets, fund and share via secure 1-click URL. Browser-only (no servers, database, or install). Cryptography and wallet primitives for airdrops, giveaways, campaigns,

17 lines 744 B
/** * Generates a random passphrase in a UUID-inspired hyphen-separated block format (e.g. "xxxx-xxxx-xxxx-xxxx"). * Each block uses uppercase, lowercase, digits, and symbols. * Retries recursively until zxcvbn score >= 3 (required by generateHash). * * @param blockLength - Characters per block (default: 4) * @param numBlocks - Number of blocks (default: 4) */ export declare function randomPassphrase(blockLength?: number, numBlocks?: number): string; /** * Generates a random PIN of digits and lowercase letters. * Retries until zxcvbn score >= 1 (required by generateHash). * * @param length - Number of characters (default: 6) */ export declare function randomPIN(length?: number): string; //# sourceMappingURL=random.d.ts.map