Generate a cryptographically secure random identifier.
Returns a 32-character hexadecimal string (16 random bytes). Suitable for unique IDs, session tokens, and security-sensitive applications.
A random 32-character hex string
const id = randomIdent()console.log(id) // e.g. "a3f2b8c9d4e1f6a2b3c4d5e6f7a8b9c0" Copy
const id = randomIdent()console.log(id) // e.g. "a3f2b8c9d4e1f6a2b3c4d5e6f7a8b9c0"
Generate a cryptographically secure random identifier.
Returns a 32-character hexadecimal string (16 random bytes). Suitable for unique IDs, session tokens, and security-sensitive applications.