@datadayrepos/js-id-web
Version:
Utils for generating identifiers in javascript browser environment. Using web crypto engine for random number generation.
18 lines (17 loc) • 519 B
TypeScript
export declare function randomString(keys?: number): {
error: null;
result: string;
};
export declare function generateSecureRandomPin(length?: number): Promise<{
error: string | null;
result: string | null;
}>;
export declare function generateSecureRandomBase64(): Promise<{
error: string | null;
result: string | null;
}>;
export declare function randomCrockford(keys?: number): {
error: null;
result: string;
};
export declare function getRandomInt(min: number, max: number): number;