@alwatr/hash-string
Version: 
A simple utility to generate a hash string.
12 lines • 646 B
TypeScript
/**
 * Simple hash string for fast hashing (like md5).
 * This function is not very secure and should not be used for security purposes.
 * But it cannot be reversed easily and brute force can take up to years for fast computers.
 *
 * @param str - The string or number to hash
 * @param prefix - A prefix to add to the beginning of the hash result
 * @param repeat - Number of times to repeat the hashing process for increased complexity (default: 3)
 * @returns A hashed string with the specified prefix
 */
export declare function nanoHash(str: string | number, prefix: string, repeat?: number): string;
//# sourceMappingURL=nano-hash.d.ts.map