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.