{"canonical_url":"https://engineer.company/glossary/password/","content_markdown":"# Password\n\n## What it is\n\nA password is a string of characters that a person keeps in memory, or in a password manager, and\npresents to show that an account is theirs. The definitions in NIST's glossary agree on the core:\nletters, numbers and other symbols “used to authenticate an identity or to verify access\nauthorization”, and in some documents also to derive cryptographic keys. The current digital\nidentity guideline, SP 800-63-4, calls it the “something you know” factor and notes that its first\nrelease used the name memorized secret. A passphrase, made of a sequence of words, and a PIN, made\nof decimal digits only, are both passwords in the wider sense.\n\nThe same string can do two jobs that look alike. A password used to sign in is sent to a verifier,\nwhich keeps enough to recognise it and should never keep the password itself. A password used to\nunlock something local stays on the device. SP 800-63B calls that kind an activation secret, with\nthe unlock PIN of a multi-factor authenticator as the usual example: it is used on the device to\nreach the secret the authenticator holds.\n\nThe difficulty is that a password is a shared secret. The user knows it, the service has to\nrecognise it, and anyone who learns it can use it exactly as the user would. Nothing in the string\nties it to the site that asked for it, which is why SP 800-63B states plainly that passwords are not\nphishing-resistant. Most of the engineering around passwords is about limiting what that shared\nknowledge costs when it leaks.\n\n## Why it matters\n\nA password is often the only thing guarding an account. Two kinds of guessing matter, and different\nthings hold each of them back.\n\nOnline guessing means trying passwords against the live sign-in form, and there the service sets the\npace. SP 800-63B caps consecutive failed attempts with one authenticator on one account at 100, and\nrequires new passwords to be checked against a blocklist of common, expected and breached values, so\nthe choices an attacker would try first are never accepted.\n\nOffline guessing begins once a copy of the stored password data has left the building. There is no\nform and no limit. The guideline notes that attackers can compute many billions of hashes per second\noffline, and that passwords meant to survive this have to be “orders of magnitude more complex” than\nones that only face a sign-in form. So storage decides the outcome. SP 800-63B requires passwords to\nbe salted and hashed with a password hashing scheme, which takes the password, a salt and a cost\nfactor and exists to make every guess expensive. The salt must be at least 32 bits and chosen so\nthat salt values rarely collide, which keeps two accounts with the same password from sharing a\nstored hash. The cost factor should be as high as the verifier can afford and raised over time. The\nguideline also recommends recording which scheme and cost produced each hash, so the system can move\nto a stronger one later.\n\nRFC 9106 describes Argon2, a memory-hard function built for this job, and recommends its Argon2id\nvariant: one pass over 2 GiB of memory as the default for all environments, or three passes over 64\nMiB where memory is scarce. The RFC says the first setting maximises an attacker's costs on\ndedicated brute-force hardware, which is the property that counts once a hash file has leaked. The\nOWASP Password Storage Cheat Sheet gives lower working minimums and fallbacks for systems that\ncannot use Argon2id, and states the rule under all of them. Fast hashes such as SHA-256 are not\nsuitable, because they let an attacker make large numbers of guesses quickly, and passwords are\nhashed rather than encrypted, because encryption runs both ways and the original can be recovered\nfrom it.\n\n## What it looks like in practice\n\nBefore\n[a company-wide password management system went in](/portfolio/integrated-a-company-wide-password-manager/),\ncredentials were stored and shared in whatever way each person preferred. Day to day, that rarely\nlooks like a dramatic breach and more often like a password in a chat message, a shared login nobody\nrotates and a slow pile of small exposures. The system gave the organisation one consistent way to\nstore and share credentials, and it was not optional per person, because a password manager only\nhalf the team uses barely helps when the risk lives in the half that did not. Once the credentials\nlived in one managed place, access control became simpler and more consistent. SP 800-63B points\nthe same way from the service side: verifiers must allow password managers and autofill, should\nallow paste, and the guideline names a password manager as the way to keep a distinct password for\nevery service.\n\nWhen\n[a second server was provisioned from code](/portfolio/provisioned-a-second-server-from-code/),\nthe first machine's history supplied the argument. It had been created by hand and its firewall\nadded afterwards, which leaves a window in which a fresh host with a default password policy is\nreachable from the internet. The fix is ordering: the new machine is born behind its firewall,\nbecause the firewall play runs before the server play.\n\nOn\n[a sign-in against a major mail provider](/portfolio/rewrote-error-messages-to-stop-blaming-users/),\nthe application told the user their password was incorrect. It was not. That provider requires an\napplication-specific password for third-party clients, so one account had two kinds of password, and\na message that knew about only one sent the user to retype something that could never work. The\nrewritten message names the provider, says it requires an app-specific password and says where to\ncreate one, and a test asserts the provider's name and the credential type.\n\n## Where it goes wrong\n\n**One password, many accounts.** When the same password protects several services, a breach at the\nweakest opens the rest. SP 800-63B calls this password stuffing: a password taken from one site is\nused against the same person's accounts on other sites. Users defend with a distinct password per\nservice, which in practice means a password manager, and services by checking new passwords against\nvalues from earlier breaches.\n\n**Rules that make passwords weaker.** Composition demands feel strict and produce predictable\nresults. The guideline's own example is a user who would have picked “password” choosing “Password1”\nwhen asked for a capital letter and a digit, and “Password1!” once a symbol is required. It rules\nout composition rules, scheduled changes, hints readable before sign-in and security questions such\nas the name of a first pet, and it still requires a change as soon as there is evidence of\ncompromise.\n\n**A fast hash, or one salt for every row.** A password table hashed with a general-purpose function,\nor salted with the same value throughout, hands an offline attacker cheap guesses that can be tested\nagainst every account at once. Systems that inherit old hashes can rehash each password with the new\nscheme at the user's next sign-in, as the OWASP cheat sheet describes, and the stored scheme\nreference shows which rows are still on the old one.\n\n**The password is cut short, or cannot be pasted.** SP 800-63B requires the whole submitted password\nto be verified, never a truncated part, and wants paste allowed so that password managers work where\nautofill does not. Some hashing functions bring their own limit: the OWASP cheat sheet notes that\nbcrypt takes at most 72 bytes of input in most implementations and tells services that use it to\nenforce that maximum.\n\n**The password lives where it was never meant to be.** A password pasted into a chat, written into a\nticket or printed in a log is a copy outside every control the real store has. Changing it is the\nonly way to take that copy back, which is why one managed place matters more than any rule about\nwhat the password looks like.\n\n## Further reading\n\n- [Password, in the NIST CSRC glossary](https://csrc.nist.gov/glossary/term/password)\n  — definitions from FIPS 140-2, SP 800-63-4 and others, with passphrase as a special case.\n- [NIST SP 800-63B-4](https://pages.nist.gov/800-63-4/sp800-63b.html)\n  — the current rules for choosing, checking and storing passwords, with the reasons in Appendix A.\n- [RFC 9106](https://www.rfc-editor.org/rfc/rfc9106)\n  — Argon2, with the two recommended Argon2id settings for password hashing.\n- [OWASP Password Storage Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n  — working parameters for Argon2id, scrypt, bcrypt and PBKDF2, and how to upgrade old hashes.\n\n\u003chttps://engineer.company/glossary/password/\u003e\n","date_modified":"2026-10-20T21:59:50Z","description":"What a password is to NIST, how to store one so a stolen copy stays expensive to use, and the habits and rules that quietly make passwords weaker.","formats":{"gemtext":"https://engineer.company/glossary/password/index.gmi","gopher":"https://engineer.company/glossary/password/gophermap","html":"https://engineer.company/glossary/password/","json":"https://engineer.company/glossary/password/index.json","markdown":"https://engineer.company/glossary/password/index.md","pdf":"https://engineer.company/glossary/password/index.pdf"},"kind":"page","language":"en","title":"What is a password?","url":"https://engineer.company/glossary/password/","version":1}