unsecure
IntroductionCryptoGenerateSafetyRecipes
  • Generate
  • Secrets
    • Generate tokens and secrets
    • Compare secrets
    • Check a secret's entropy
  • Draw random numbers
  • Create identifiers
  • Give rewards at the promised rate

Generate

Make tokens, random numbers, identifiers and fair odds from the runtime's cryptographic randomness, and check secrets without leaking timing.

i-lucide-dice-5

Secrets

Generate tokens and passwords, compare them in constant time, turn away weak ones.

Draw random numbers

Integers, bytes, shuffles and delays, with every value in range equally likely.

Create identifiers

UUIDv7 keys that sort by creation time, and UUIDv4 when the time is private.

Give rewards at the promised rate

Decks, pity and pseudo-random chances that end droughts without changing the odds.

Edit this page
Previous Add a second factor Next Secrets

unsecure  Cryptographic utilities on the Web Crypto API.