Password
A password is a common means of access control which uses a secret sequence (typically a word, hence the name). Passwords are commonly used for access control on computer systems, although they have been used to control access to a variety of things (eg, protected locations, battle lines, office buildings, activation of launch controls, ...) and continue to be so used.In a computer security system, a user (either a real human at a keyboard, or an automated computer program) attempts to access a restricted resource, such as a file or process. The user is asked to supply a password as a means of identification. If the password provided matches what the system has stored for that user, the user is permitted access by the security system (usually a part of the operating system). Access may be to certain directories and files, certain executables, certain times, or amounts of resources (such as computer CPU time, or disk storage space). Success implies that the user is who they claim to be, since no one else should have knowledge of the password.
Examples include logons to computer systems such as email servers, or Illya Kuryakin proving his identity to the U.N.C.L.E security door with a code word, or a personal_identification_number (PIN) at a bank cash machine.
Despite the name, there is no need for passwords to be actual words; indeed passwords which are not actual words are harder to guess (a very desirable trait). Note that password is often used to describe what would be more accurately called a pass phrase. Passcode is sometimes taken to imply that the information used is purely numeric, such as the PIN commonly used for ATM access.
Passwords are sometimes shared by the members of a group who are all intended to have the same access to the computer system. However, it is preferable for each user to have his own individual password since the more people (or programs) who know a password, the higher the chance that the password will become known to others. Individual passwords allow Alice, who has left the group, to be removed from it, thus losing the access which was 'ex officio' her group membership. This is a simple example of the often subtle problems with access control, including passwords. It is often surprisingly difficult to match real world policy issues and concerns (eg, joining or leaving a group) with the access control mechanism(s).
The security of a password protected system depends on several factors, all of which are tied to keeping the password completely secret.
Factors in the security of a password system
Even when using encryption procedures to provide increased security, no password system is totally immune to attack. There exist tools which can determine some plaintext passwords, given a copy of the file containing the encrypted ones. By comparing the encrypted outcome of every word (and many word variations) from some word collection (ie, a dictionary), a program can automatically attack many computer systems. These dictionary attack tools demonstrate by existence the relative strengths of different password choices against such attacks. This is an variant of a brute force attack in which all possible (or in the case of a dictionary attack, a sizable subset of all), passwords are tried.
A weak password would be one that was short or which could be rapidly guessed by searching a subset such as words in the dictionary, proper names, words based on the user name or common variations on these themes. A strong password would be sufficiently long, random, or produceable only by the user who chose it, that 'guessing' for it will require 'too long'. How long that is will vary with the attacker, with attacker resources, and with how important the password being sought is to the attacker. 'Weak' and 'strong' have only a rather fuzzy meaning in this context, but are often misused in ways implying considerable precision. But note that a 'strong password' in this sense can still be stolen, tricked, or extorted from a user, or overheard by tapping some communications medium, or copied from a Post It note. Strong has a severely limited meaning in this context.
Examples of weak passwords would be god, sex, password, rover, smile and 12/3/75; most would be easily found with a dictionary search attack and the last is likely some personally significant date readily discoverable with a little research. Examples of stronger passwords would be tastywheeT34, '\'partei@34!, and #23kLLflux. These passwords are not dictionary attackable, use combinations of lower and upper case letters / numbers / symbols, and are sufficiently long to make direct brute force search impractically costly. Note that some systems do not allow symbols like #, @ and !'' to be in passwords; in such cases, another letter or number or two may offer equivalent security.
It has been said that the ideal password should be "impossible to remember", and so unlikely to be guessable. Such passwords are surely stronger, that is harder for an attacker to discover; but they are more often written down, and so easier to discover by looking under drawers or keyboards or behind pictures or for Post-it notes. Such passwords regularly evoke violations of another bit of common, and wise, advice -- "never write a password down anywhere". Requiring 'strong' passwords thus often causes the unintended consequence that many such passwords are less secure by increasing the liklihood that they will be lost, snooped, copied, or otherwise compromised.
If even the smallest possibility exists that the password has become known to anyone other than those to whom it 'belongs', it should be considered compromised, and immediately changed. Human users commonly resent, and resist, such measures.
See also
For information on the game Password, see Password game.