Security and ID tools

Passwords, hashes, bcrypt, AES, JWT signing, 2FA codes, RSA and SSH keys, certificate decoding and unique IDs, all generated in the browser.

Which tool to use

Hashing, password hashing and encryption

These three are often confused:

  • A hash such as SHA-256 is a one-way fingerprint. It is fast, which suits checksums and signatures.
  • A password hash such as bcrypt is deliberately slow and salted, so a stolen database is expensive to crack.
  • Encryption such as AES is reversible, but only with the key.

MD5 and SHA-1 are no longer collision-resistant. They are still fine for spotting accidental corruption, and should not be used where an attacker could choose the input.

Privacy

Secrets are the last thing to paste into a remote service. Passwords are generated with the browser's cryptographic random source, and hashing and encryption run in the page.

Frequently asked questions

Should I use SHA-256 or bcrypt to store passwords?
Use bcrypt, or another dedicated password hash such as Argon2 or scrypt. SHA-256 is designed to be fast, which lets an attacker try billions of guesses per second. Bcrypt is slow on purpose and adds a salt to every hash.
What is the difference between UUID v4 and UUID v7?
Version 4 is entirely random. Version 7 starts with a millisecond timestamp followed by random bits, so IDs sort by creation time, which keeps database indexes compact.
What is the difference between a UUID and a ULID?
Both are 128-bit identifiers. A UUID is written as 36 characters of hex with hyphens. A ULID is 26 characters of Crockford Base32 that begins with a timestamp, so it sorts as plain text.
Is it safe to generate a password in the browser?
Yes, when it is generated locally and never transmitted. XUtil builds the password in the page from the browser's cryptographic random source and makes no network request.