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.
- Password Generator: Random passwords with length and character-set controls.
- Hash Generator: MD5, SHA-1, SHA-256, SHA-384, SHA-512 and HMAC for text or a file.
- Bcrypt Generator: Hash a password with bcrypt, or check one against a hash.
- AES Encrypt / Decrypt: Encrypt text with a passphrase using AES-256-GCM, or decrypt it.
- UUID / GUID Generator: One or many UUIDs, version 4 or 7.
- ULID Generator: Sortable 26-character IDs with a time prefix.
- Random Number Generator: Random integers in a range, one or many, with or without repeats.
- Certificate Decoder: Read an X.509 certificate or CSR: subject, issuer, expiry, SANs, key and fingerprints.
- JWT Encoder & Verifier: Sign a JWT with HS256, HS384 or HS512, or verify a token against a secret or public key.
- TOTP Code Generator: The current 2FA code for a Base32 secret or otpauth URI, and new secrets with a QR code.
- RSA & SSH Key Generator: RSA key pairs, and Ed25519 where the browser supports it, as PEM and OpenSSH files.
Which tool to use
- A new password: the Password Generator, with length and character-set controls.
- A checksum or HMAC: the Hash Generator covers MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for text or a file.
- A password hash for a database: the Bcrypt Generator hashes a password or checks one against an existing hash.
- Text only you should read: AES Encrypt / Decrypt uses AES-256-GCM with a passphrase.
- Tokens and 2FA: the JWT Encoder & Verifier signs a token with HS256, HS384 or HS512 and verifies HMAC, RS256 and ES256 signatures, and the TOTP Code Generator shows the current code for an authenticator secret.
- Keys and certificates: the RSA & SSH Key Generator makes key pairs as PEM and OpenSSH files, and the Certificate Decoder reads an X.509 certificate or CSR: subject, issuer, expiry, SANs and fingerprints.
- Identifiers: the UUID / GUID Generator for version 4 or 7, the ULID Generator for sortable 26-character IDs, and the Random Number Generator for integers in a range.
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.