Passwords, API keys, and hashes serve different security purposes even though they can all look like random strings. A password is a secret used for authentication. An API key identifies or authorizes a client according to a service policy. A cryptographic hash is a deterministic digest of input bytes. This local tool separates those workflows into three tabs so you can choose the right operation instead of treating every opaque string as interchangeable.
How to use it
- Select Password, API key, or Hash in the mode selector.
- For passwords, choose a length from 8 to 128 and enable the character groups your destination accepts.
- Optionally exclude ambiguous characters when someone must transcribe a secret manually.
- For API keys, choose hexadecimal, Base64url, UUID v4, or the prefixed example format.
- For hashes, enter text and choose a SHA algorithm; then copy the generated result.
- Use Regenerate in either random-secret mode whenever you need a fresh value.
Understanding the output
Password entropy is estimated as length multiplied by the base-two logarithm of alphabet size. A 16-character password sampled uniformly from 94 characters has roughly 104.9 bits of search-space entropy. The strength label summarizes that estimate; it does not account for malware, phishing, password reuse, weak recovery procedures, or a compromised account database.
The generator obtains browser cryptographic random bytes and uses rejection sampling to avoid modulo bias. Every accepted alphabet character is equally likely. Selecting uppercase, lowercase, digits, and symbols defines the allowed alphabet, but does not guarantee that every generated password contains at least one member of every selected group. Check destination rules before saving the secret.
API key formats are representations
The 32-character hexadecimal format contains 16 random bytes, while the 64-character format contains 32. Base64url represents 32 random bytes with a URL-friendly alphabet. UUID v4 includes fixed version and variant bits, so not every displayed bit is random. The prefixed format adds a recognizable label to 32 random alphanumeric characters. Generating a string here does not register it with any service or grant access to an API.
Pro tips
- Store real credentials in a password manager or secret-management system.
- Generate a different secret for every environment and integration.
- Prefer the longest acceptable random secret over memorable substitutions.
- Rotate exposed credentials instead of merely deleting a screenshot or log entry.
Hash mode encodes text as UTF-8 and returns the selected digest as hexadecimal. Identical bytes yield identical hashes, while a changed newline or Unicode representation can change the digest. SHA-1 is available for legacy comparison, not as a recommendation for modern collision-sensitive security.
Common security mistakes
Plain SHA hashes are not password storage. Fast digest algorithms make offline guessing inexpensive. Production password storage needs a dedicated scheme such as Argon2id or bcrypt, appropriate parameters, and a unique salt. A long random API token may be stored using a different verification design, but that architecture requires careful threat modeling.
Local generation reduces unnecessary network exposure, yet clipboard history, browser extensions, and screen sharing can still disclose secrets. Treat copied output as sensitive and avoid placing production credentials in issue trackers, example code, or public repositories.
Further reading and practical checks
Read Secure passwords, API keys, and hashes: practical background for a broader workflow, and use the related base64 image encoder tool when the next task requires it. The official reference provides additional technical context. Keep those references alongside your own acceptance criteria so a convenient result does not become an undocumented assumption.
Before handing off work, compare one known example against a manually verified expectation. Save the original input, identify the settings that matter, and explain any approximation to the next person. Small checks catch unit mistakes, formatting differences, and misplaced confidence early. When requirements change, repeat the same example before applying the workflow to a larger collection.
Keep context with the result
A copied result is easier to reuse when its source and purpose are clear. Include a short note describing where the input came from, which part of the output matters, and what you expect a teammate to verify. Avoid sharing sensitive source material unnecessarily. When a result seems surprising, reduce the example to the smallest input that reproduces it, then compare that case against the documented rules. This turns an ambiguous discrepancy into a concrete question that is much easier to investigate.
Frequently asked questions
Does this send secrets to a server?+
Generation and hashing run locally in your browser. Clipboard tools, extensions, and screen recordings can still expose output.
Can I store passwords as SHA-256?+
Not as a plain fast digest. Use a dedicated password hashing scheme such as Argon2id or bcrypt with suitable parameters and a unique salt.
Does an API key generated here work with a service?+
No, it is a random string in a convenient format. The service must explicitly provision or recognize credentials.
Why might a password omit a selected group?+
Groups define the sampling alphabet rather than mandatory composition rules. A uniformly random result can omit one group by chance.
Why exclude ambiguous characters?+
It can make manual transcription easier. Removing characters also reduces alphabet size, so increase length if necessary.
Articles that use this tool
In-depth articles with the Password & hash built right in.
How to Store API Keys Securely: Secure Token Generation
Generate unpredictable API tokens, store verifiers safely, and build expiration, rotation, and revocation workflows without confusing password hashes with keys.
Includes: Password & hashSelf-Hosted VPN on a $5 DigitalOcean or Linode Server
Build a small WireGuard VPS gateway with safe key handling, explicit forwarding and NAT, then test routing, DNS, and reboot recovery before relying on it.
Includes: Password & hashPerfect Forward Secrecy (PFS) in VPN Handshakes
Learn what forward secrecy protects, inspect WireGuard and OpenVPN handshakes, and separate session-key safety from passwords, logging, and endpoint risks.
Includes: Password & hashcPanel Alternatives: DirectAdmin, CyberPanel and aaPanel
Compare DirectAdmin, CyberPanel, and aaPanel on a disposable VPS, then test access controls, backups, resource use, and migration before choosing a panel.
Includes: Password & hashArgon2 vs bcrypt: Secure Password Hashing and Migration
Implement password storage with Argon2id, maintain bcrypt safely, benchmark resource costs, and upgrade existing hashes during login without exposing plaintext secrets.
Includes: Password & hashRAG Tutorial: Retrieval-Augmented Generation for Site Search
Build a documentation RAG workflow that retrieves permitted, current passages, produces checkable citations, and separates search failures from answer-generation mistakes.
Includes: Password & hash