Generates a SHA-1 hash of the provided data.
Useful for generating deterministic IDs based on content, such as for image references or revision tracking.
The data to hash (Buffer, string, Uint8Array, or ArrayBuffer)
A hexadecimal string representation of the SHA-1 hash
const hash = hashedId("Hello World"); // Returns "0a4d55a8d778e5022fab701977c5d840bbc486d0" Copy
const hash = hashedId("Hello World"); // Returns "0a4d55a8d778e5022fab701977c5d840bbc486d0"
Generates a SHA-1 hash of the provided data.
Useful for generating deterministic IDs based on content, such as for image references or revision tracking.