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
  1. Secrets

Secrets

Make a secret, check one a client sent, and turn away one that is plainly weak.

Generate tokens and secrets

API tokens, invite codes and temporary passwords from the characters you choose.

Compare secrets

Check a key or token from a request in constant time, with no guard around the call.

Check a secret's entropy

Reject repetitive and sequential passwords. A pass is never proof of strength.

Edit this page
Previous Generate Next Generate tokens and secrets

unsecure  Cryptographic utilities on the Web Crypto API.