test-numbers-generator
Version:
Generate and validate European test phone numbers (mobile and landline) in safe, non-existent ranges.
17 lines (16 loc) • 709 B
TypeScript
/**
* Example usage:
*
* import { generateDeterministicPassword } from './passwordGenerator';
*
* const password = generateDeterministicPassword('verzorger1kind', 'myAppSecret');
* console.log(password); // Always the same for same secret+appSecret
*/
/**
* Generates a deterministic password based on a user secret and an app secret (pepper).
* The same combination will always produce the same password.
* @param userSecret - A user-provided secret string
* @param appSecret - An application-wide secret (pepper, should be kept private)
* @returns Deterministic password string (12 chars)
*/
export declare function generateDeterministicPassword(userSecret: string, appSecret: string): string;