


export function hashString(str) { const hashDjb2 = (str) => { let hash = 5381; for (let i = 0; i < str.length; i++) { hash = ((hash << 5) + hash) + str.charCodeAt(i); } hash = Math.abs(hash).toString(16).padStart(8, "0"); return hash; }; const hash1 = hashDjb2(str); const hash2 = hashDjb2(hash1 + str); return hash1 + hash2; }
