JavaScript Tested
Generate secure random IDs and integers
Create UUIDs, random integers in a range and URL-safe tokens with the Web Crypto API instead of Math.random.
Loading snippets…
2 snippets
Create UUIDs, random integers in a range and URL-safe tokens with the Web Crypto API instead of Math.random.
Create unpredictable tokens for password resets, API keys and CSRF protection with random_bytes.