UNPKG

userdnajs

Version:

Community edition of UserDNA JS. A fingerprint generator library for creating unique user identifiers

27 lines (26 loc) 733 B
/** * Utility functions for hashing and data manipulation */ /** * Creates a simple hash from a string - used in free version * @param input - String to hash * @returns Hashed string */ export declare function simpleHash(input: string): string; /** * Combines multiple values into a single hash * @param values - Array of values to combine * @returns Combined hash */ export declare function combineHashes(values: any[]): string; /** * Normalizes a string for consistent comparisons * @param str - String to normalize * @returns Normalized string */ export declare function normalizeString(str: string): string; /** * Generates a unique ID * @returns Unique ID */ export declare function generateUniqueId(): string;