All Topics  
Password

 

   Email Print
   Bookmark   Link






 

Password



 
 
A password is a secret word
Word

A word is a unit of language that represents a concept which can be expressively communication with Meaning . A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value....
 or string of characters
Character (computing)

In computer and machine-based telecommunications terminology, a character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written language form of a natural language....
 that is used for authentication
Authentication

Authentication is the act of establishing or confirming something as authentic, that is, that claims made by or about the subject are true....
, to prove identity or gain access to a resource (Example: An access code
Access Code

An access code is a sequence of characters and/or numbers that allow access to a secure service.Access codes are often used in security systems to permit entry....
 is a type of password). The password must be kept secret
Secrecy

Secrecy or furtiveness is the practice of sharing information among a group of people, which can be as small as one person, while hiding it from all others....
 from those not allowed access.

The use of passwords is known to be ancient. Sentries would challenge those wishing to enter an area or approaching it to supply a password or watchword. Sentries would only allow a person or group to pass if they knew the password.






Discussion
Ask a question about 'Password'
Start a new discussion about 'Password'
Answer questions from other users
Full Discussion Forum



Encyclopedia


A password is a secret word
Word

A word is a unit of language that represents a concept which can be expressively communication with Meaning . A word consists of one or more morphemes which are linked more or less tightly together, and has a phonetic value....
 or string of characters
Character (computing)

In computer and machine-based telecommunications terminology, a character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written language form of a natural language....
 that is used for authentication
Authentication

Authentication is the act of establishing or confirming something as authentic, that is, that claims made by or about the subject are true....
, to prove identity or gain access to a resource (Example: An access code
Access Code

An access code is a sequence of characters and/or numbers that allow access to a secure service.Access codes are often used in security systems to permit entry....
 is a type of password). The password must be kept secret
Secrecy

Secrecy or furtiveness is the practice of sharing information among a group of people, which can be as small as one person, while hiding it from all others....
 from those not allowed access.

The use of passwords is known to be ancient. Sentries would challenge those wishing to enter an area or approaching it to supply a password or watchword. Sentries would only allow a person or group to pass if they knew the password. In modern times, user name
User (computing)

In computing, a user is a person who uses a computer or Internet service. A user may have a user account that identifies the user by a username , screenname , or "handle", which is derived from the identical Citizen's Band radio term....
s and passwords are commonly used by people during a log in
Logging (computer security)

In computer security, login is the process by which individual access to a computer system is controlled by identification of the User using credentials provided by the user....
 process that controls access
Access control

Access control is the ability to permit or deny the use of a particular resource by a particular entity. Access control mechanisms can be used in managing physical resources , logical resources , or digital resources ....
 to protected computer operating system
Operating system

An operating system is an interface between hardware and applications; it is responsible for the management and coordination of activities and the sharing of the limited resources of the computer....
s, mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s, cable TV decoders, automated teller machines
Automated teller machine

An automated teller machine is a computerized telecommunications device that provides the customers of a financial institution with access to financial transactions in a public space without the need for a human clerk or bank teller....
 (ATMs), etc. A typical computer user
Computer User

Computer User is a computer magazine originally founded in 1982, and which after several owners and metamorphisis, is still in business today online as ....
 may require passwords for many purposes: logging in to computer accounts, retrieving e-mail
E-mail

Electronic mail, often abbreviated as e-mail, email, E-Mail, or eMail, is any method of creating, transmitting, or storing primarily text-based human communications with digital communications systems....
 from servers, accessing programs, databases, networks, web sites, and even reading the morning newspaper online.

Despite the name, there is no need for passwords to be actual words; indeed passwords which are not actual words may be harder to guess, a desirable property. Some passwords are formed from multiple words and may more accurately be called a passphrase
Passphrase

A passphrase is a sequence of words or other text used to access control to a computer system, program or data. A passphrase is similar to a password in usage, but is generally longer for added security....
. The term passcode is sometimes used when the secret information is purely numeric, such as the personal identification number
Personal identification number

A personal identification number is a secret numeric password shared between a user and a system that can be used to authenticate the user to the system....
 (PIN) commonly used for ATM access. Passwords are generally short enough to be easily memorized
Memory

In psychology, memory is an organism's mental ability to store, retain and recall information. Traditional studies of memory began in the fields of philosophy, including techniques of mnemonic....
 and typed.

For the purposes of more compellingly authenticating the identity of one computing device to another, passwords have significant disadvantages (they may be stolen, spoofed, forgotten, etc.) over authentications systems relying on cryptographic
Cryptography

Cryptography is the practice and study of hiding information. In modern times cryptography is considered a branch of both mathematics and computer science and is affiliated closely with information theory, computer security and engineering....
 protocols which are more difficult to circumvent.

Designing a personal, user-friendly password

Passwords vary in their degree of security protection, frequency of change, and typically vary in required characteristics (eg, minimum and maximum lengths, permitted characters, etc) from system to system. The most public, and therefore least secure, password might be one that is given to members of a group, a committee or some other organization. For instance, "publiclibrary", "internet", "financecommittee" or "password" are all examples of easily remembered passwords, more or less publicly knowable passwords.

Less easily attacked passwords might be built from such a basic form, for instance, "smith12nov34street" or "AAAchairperson111". These are slightly more secure, but being relatively easily predictable should not be relied upon to actually block unauthorized access. Effective access control requires passwords which are more difficult to guess or to find automatically, less publicly knowable (ideally not at all), and these are the subject of much of the rest of this article. One method of creating passwords that are memorable, but harder to attack successfully is to use selective substitution of numbers for letters, e.g. 'I' is replaced by '1', 'E' by '3' etc. This becomes even more secure if the numbers are 'shifted' on the keyboard. In this instance, the number '1' might be replaced by '!', assuming '!' is a permitted character in passwords on the relevant system.

Factors in the security of a password system

The security of a password-protected system depends on several factors. The overall system must, of course, be designed for sound security, with protection against computer virus
Computer virus

A computer virus is a computer program that can copy itself and infect a computer without the permission or knowledge of the user. The term "virus" is also commonly but erroneously used to refer to other types of malware, adware and spyware programs that do not have the reproductive ability....
es, man-in-the-middle attack
Man-in-the-middle attack

In cryptography, the man-in-the-middle attack or bucket-brigade attack , sometimes Janus attack, is a form of active eavesdropping in which the attacker makes independent connections with the victims and relays messages between them, making them believe that they are talking directly to each other over a private connection when i...
s and the like. Physical security issues are also a concern, from deterring shoulder surfing
Shoulder surfing (computer security)

In computer security, shoulder surfing refers to using direct observation techniques, such as looking over someone's shoulder, to get information....
 to more sophisticated physical threats such as video cameras and keyboard sniffers. And, of course, passwords should be chosen so that they are hard for an attacker to guess and hard for an attacker to discover using any (and all) of the available automatic attack schemes. See password strength
Password strength

Password strength is a measurement of the effectiveness of a password as an authentication credential. Specifically, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to correctly guess it....
, computer security
Computer security

Computer security is a branch of technology known as information security as applied to computers. The objective of computer security can include protection of information from theft or corruption, or the preservation of availability, as defined in the security policy....
, and computer insecurity
Computer insecurity

Many current computer systems have only limited security precautions in place. This computer insecurity article describes the current battlefield of computer security exploit s and defenses....
.

Effective access control provisions may force extreme measures on criminals seeking to acquire a password or biometric token. Less extreme measures include extortion
Extortion

Extortion, outwresting, or exaction is a crime, which occurs, when a person unlawfully obtains either money, property or services from a person, entity, or institution, through coercion....
, rubber hose cryptanalysis, side channel attack
Side channel attack

In cryptography, a side channel attack is any attack based on information gained from the physical implementation of a cryptosystem, rather than brute force attack or theoretical weaknesses in the algorithms ....
, ...

Here are some specific password management issues that must be considered in thinking about, choosing, and handling, a password:

Rate at which an attacker can try guessed passwords

The rate at which an attacker can submit guessed passwords to the system is a key factor in determining system security. Some systems impose a time-out of several seconds after a small number (e.g., three) of failed password entry attempts. In the absence of other vulnerabilities, such systems can be effectively secure with relatively simple passwords, if they have been well chosen and are not easily guessed.

Many systems store or transmit a cryptographic hash of the password in a manner that makes the hash value accessible to an attacker. When this is done, and it is very common, an attacker can work off-line, rapidly testing candidate passwords against the true password's hash value. Passwords that are used to generate cryptographic keys (e.g., for disk encryption
Disk encryption

Disk encryption is a special case of data at rest protection when the storage media is a sector-addressable device . This article presents cryptographic aspects of the problem....
 or Wi-Fi
Wi-Fi

Wi-Fi is a trademark of the Wi-Fi Alliance, founded in 1999 as Wireless Internet Compatibility Alliance , comprising more than 300 companies, whose products are certified by the Wi-Fi Alliance, based on the IEEE 802.11 standards ....
 security) can also be subjected to high rate guessing. Lists of common passwords are widely available and can make password attacks very efficient. (See Password cracking
Password cracking

Password cracking is the process of recovering passwords from data that has been stored in or transmitted by a computer system. A common approach is to repeatedly try guesses for the password....
.) Security in such situations depends on using passwords or passphrases of adequate complexity, making such an attack computationally infeasible for the attacker. Some systems, such as PGP and Wi-Fi WPA apply a computation-intensive hash to the password to slow such attacks. See key strengthening
Key strengthening

In cryptography, key strengthening or key stretching refer to techniques used to make a possibly-weak Key , typically a password or passphrase, more secure against a brute force attack by increasing the time it takes to test each possible key....
.

Form of stored passwords

Some computer systems store user passwords as cleartext
Cleartext

In data communications, cleartext is the form of a message or data which is in a form that is immediately comprehensible to a human being without additional processing....
, against which to compare user log on attempts. If an attacker gains access to such an internal password store, all passwords -- and so all user accounts -- will be compromised. If some users employ the same password for accounts on different systems, those will be compromised as well.

More secure systems store each password in a cryptographically protected form, so access to the actual password will still be difficult for a snooper who gains internal access to the system, while validation of user access attempts remains possible.

A common approach stores only a "hashed" form of the plaintext password. When a user types in a password on such a system, the password handling software runs through a cryptographic hash algorithm, and if the hash value generated from the user's entry matches the hash stored in the password database, the user is permitted access. The hash value is created by applying a hash function (for maximum resistance to attack this should be a cryptographic hash function
Cryptographic hash function

A cryptographic hash function is a algorithm that takes an arbitrary block of data and returns a fixed-size bit string, the hash value, such that an accidental or intentional change to the data will almost certainly change the hash value....
) to a string consisting of the submitted password and, usually, another value known as a salt
Salt (cryptography)

In cryptography, a salt comprises Random Number Generator bits that are used as one of the inputs to a key derivation function. The other input is usually a password or passphrase....
. The salt prevents attackers from easily building a list of hash values for common passwords. MD5
MD5

In cryptography, MD5 is a widely used cryptographic hash function with a 128-bit hash value. As an Internet standard , MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of computer file....
 and SHA1 are frequently used cryptographic hash functions.

A modified version of the DES
Data Encryption Standard

The Data Encryption Standard is a block cipher that was selected by National Bureau of Standards as an official Federal Information Processing Standard for the United States in 1976 and which has subsequently enjoyed widespread use internationally....
 algorithm was used for this purpose in early Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 systems. The UNIX DES function was iterated to make the hash function equivalent slow, further frustrating automated guessing attacks, and used the password candidate as a key to encrypt a fixed value, thus blocking yet another attack on the password shrouding system. More recent Unix or Unix like systems (eg, Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 or the various BSD systems) use what most believe to be still more effective protective mechanisms based on MD5, SHA1, Blowfish, Twofish, or any of several other algorithms to prevent or frustrate attacks on stored password files.

If the hash function is well designed, it will be computationally infeasible to reverse it to directly find a plaintext
Plaintext

In cryptography, plaintext is the information which the sender wishes to transmit to the receiver. Before the computer era, plaintext simply meant text in the language of the communicating parties....
 password. However, many systems do not protect their hashed passwords adequately, and if an attacker can gain access to the hashed values he can use widely available tools which compare the encrypted outcome of every word from some list, such as a dictionary (many are available on the Internet). Large lists of possible passwords in many languages are widely available on the Internet, as are software programs to try common variations. The existence of these dictionary attack
Dictionary attack

In cryptanalysis and computer security, a dictionary attack is a technique for defeating a cipher or authentication mechanism by trying to determine its decryption key or passphrase by searching likely possibilities....
 tools constrains user password choices which are intended to resist easy attacks; they must not be findable on such lists. Obviously, words on such lists should be avoided as passwords. Use of a key stretching hash such as PBKDF2
PBKDF2

PBKDF2 is a key derivation function that is part of RSA Laboratories' Public-Key Cryptography Standards series, specifically PKCS #5 v2.0, also published as Internet Engineering Task Force's RFC 2898....
 is designed to reduce this risk.

A poorly designed hash function can make attacks feasible even if a strong password is chosen. See LM hash
LM hash

LM hash or LAN Manager hash is one of the formats that Microsoft LAN Manager and Microsoft Windows versions previous to Windows Vista use to store user passwords that are fewer than 15 characters long....
 for a very widely deployed, and deplorably insecure, example.

Methods of verifying a password over a network


A variety of methods have been used to verify submitted passwords in a network setting:

Simple transmission of the password

Passwords are vulnerable to interception (i.e., "snooping") while being transmitted to the authenticating machine or person. If the password is carried as electrical signals on unsecured physical wiring between the user access point and the central system controlling the password database, it is subject to snooping by wiretapping
Telephone tapping

Telephone tapping is the monitoring of telephone and Internet conversations by a third party, often by covert means. The telephone tap or wire tap received its name because, historically, the monitoring connection was applied to the wires of the telephone line being monitored and drew off or tapped a small amount of the electrica...
 methods. If it is carried as packetized data over the Internet, anyone able to watch the packets containing the logon information can snoop with a very low probability of detection.

Email is sometimes used to distribute passwords. Since most email is sent as cleartext
Cleartext

In data communications, cleartext is the form of a message or data which is in a form that is immediately comprehensible to a human being without additional processing....
, it is available without effort during transport to any eavesdropper. Further, the email will be stored on at least two computers as cleartext -- the sender's and the recipient's. If it passes through intermediate systems during its travels, it will likely be stored on those as well, at least for some time. Attempts to delete an email from all these vulnerabilities may, or may not, succeed; backup
Backup

In information technology, backup refers to making copies of data so that these additional copies may be used to restore the original after a data loss event....
s or history files or cache
Cache

In computer science, a cache is a collection of data duplicating original values stored elsewhere or computed earlier, where the original data is expensive to fetch or to compute, compared to the cost of reading the cache....
s on any of several systems may still contain the email. Indeed merely identifying every one of those systems may be difficult. Emailed passwords are generally an insecure method of distribution.

An example of cleartext
Cleartext

In data communications, cleartext is the form of a message or data which is in a form that is immediately comprehensible to a human being without additional processing....
 transmission of passwords is the original Wikipedia
Wikipedia

Wikipedia is a Free content, multilingualism encyclopedia project supported by the non-profit organization Wikimedia Foundation. Its name is a portmanteau of the words wiki and encyclopedia....
 website. When you logged into your Wikipedia account, your username and password are sent from your computer's browser through the Internet as cleartext. In principle, anyone could read them in transit and thereafter log into your account as you; Wikipedia's servers have no way of distinguishing such an attacker from you. In practice, an unknowably larger number could do so as well (eg, employees at your Internet Service Provider, at any of the systems through which the traffic passes, etc). More recently, Wikipedia has offered a secure login option, which, like many e-commerce sites, uses the SSL / (TLS
Transport Layer Security

Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
) cryptographically based protocol to eliminate the cleartext transmission. But, because anyone can gain access to Wikipedia (without logging in at all), and then edit essentially all articles, it can be argued that there is little need to encrypt these transmissions as there's little being protected. Other websites (eg, banks and financial institutions) have quite different security requirements, and cleartext transmission of anything is clearly insecure in those contexts.

Using client-side encryption will only protect transmission from the mail handling system server to the client machine. Previous or subsequent relays of the email will not be protected and the email will probably be stored on multiple computers, certainly on the originating and receiving computers, most often in cleartext.

Transmission through encrypted channels

The risk of interception of passwords sent over the Internet can be reduced by, among other approaches, using cryptographic
Cryptography

Cryptography is the practice and study of hiding information. In modern times cryptography is considered a branch of both mathematics and computer science and is affiliated closely with information theory, computer security and engineering....
 protection. The most widely used is the Transport Layer Security
Transport Layer Security

Transport Layer Security and its predecessor, Secure Sockets Layer , are cryptographic protocols that provide security and data integrity for communications over Internet Protocol Suite networks such as the Internet....
 (TLS, previously called SSL) feature built into most current Internet browsers
Web browser

A Web browser is a application software which enables a user to display and interact with text, images, videos, music, games and other information typically located on a Web page at a website on the World Wide Web or a local area network....
. Most browsers alert the user of a TLS/SSL protected exchange with a server by displaying a closed lock icon, or some other sign, when TLS is in use. There are several other techniques in use; see cryptography
Cryptography

Cryptography is the practice and study of hiding information. In modern times cryptography is considered a branch of both mathematics and computer science and is affiliated closely with information theory, computer security and engineering....
.

Hash-based challenge-response methods

Unfortunately, there is a conflict between stored hashed-passwords and hash-based challenge-response authentication
Challenge-response authentication

In computer security, challenge-response authentication is a family of protocols in which one party presents a question and another party must provide a valid answer to be authentication....
; the latter requires a client to prove to a server that he knows what the shared secret
Shared secret

In cryptography, a shared secret is a piece of data only known to the parties involved in a secure communication. The shared secret can be a password, a passphrase, a big number or an array of randomly chosen bytes....
 (i.e., password) is, and to do this, the server must be able to obtain the shared secret from its stored form. On many systems (including Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
-type systems) doing remote authentication, the shared secret usually becomes the hashed form and has the serious limitation of exposing passwords to offline guessing attacks. In addition, when the hash is used as a shared secret, an attacker does not need the original password to authenticate remotely; he only needs the hash.

Zero-knowledge password proofs

Rather than transmitting a password, or transmitting the hash of the password, password-authenticated key agreement
Password-authenticated key agreement

In cryptography, a password-authenticated key agreement method is an interactive method for two or more parties to establish cryptographic keys based on one or more party's knowledge of a password....
 systems can perform a zero-knowledge password proof
Zero-knowledge password proof

In cryptography, a zero-knowledge password proof is an interactive method for one party to prove to another party that it knows a value of a password, without revealing anything other than the fact that it knows that password to the verifier....
, which proves knowledge of the password without exposing it.

Moving a step further, augmented systems for password-authenticated key agreement
Password-authenticated key agreement

In cryptography, a password-authenticated key agreement method is an interactive method for two or more parties to establish cryptographic keys based on one or more party's knowledge of a password....
 (e.g., AMP, B-SPEKE, PAK-Z, SRP-6) avoid both the conflict and limitation of hash-based methods; An augmented system allows a client to prove knowledge of the password to a server, where the server knows only a (not exactly) hashed password, and where the unhashed password is required to gain access.

Procedures for changing passwords


Usually, a system must provide a way to change a password, either because a user believes the current password has been (or might have been) compromised, or as a precautionary measure. If a new password is passed to the system in unencrypted form, security can be lost (e.g., via wiretapping) even before the new password can even be installed in the password database. And, of course, if the new password is given to a compromised employee, little is gained. Some web sites include the user-selected password in an unencrypted confirmation e-mail message, with the obvious increased vulnerability.

Identity management
Identity management

In information systems, identity management is the management of the Digital identity life cycle of entities .Identity management is multidisciplinary covers many dimensions such as:...
 systems are increasingly used to automate issuance of replacements for lost passwords, a feature called self service password reset
Self service password reset

Self-service password reset is defined as any process or technology that allows users who have either forgotten their password or triggered an intruder lockout to authenticate with an alternate factor, and repair their own problem, without calling the help desk....
. The user's identity is verified by asking questions and comparing the answers to ones previously stored (ie, when the account was opened). Typical questions include "Where were you born?," "What is your favorite movie?" or "What is the name of your pet?" In many cases the answers to these questions can be relatively easily guessed by an attacker, determined by low effort research, or obtained through social engineering, and so this is less than fully satisfactory as a verification technique. While many users have been trained never to reveal a password, few consider the name of their pet or favorite movie to require similar care.

Password longevity


"Password aging" is a feature of some operating systems which forces users to change passwords frequently (e.g., quarterly, monthly or even more often), with the intent that a stolen password will become unusable more or less quickly. Such policies usually provoke user protest and foot-dragging at best and hostility at worst. Users may develop simple variation patterns to keep their passwords memorable. In any case, the security benefits are distinctly limited, if worthwhile, because attackers often exploit a password as soon as it is compromised, which will likely be some time before change is required. In many cases, particularly with administrative or "root" accounts, once an attacker has gained access, he can make alterations to the operating system that will allow him future access even after the initial password he used expires. (see rootkit
Rootkit

A rootkit is malware which consists of a Computer program designed to hide or obscure the fact that a system has been compromised. Contrary to what its name may imply, a rootkit does not grant a user administrator access as it requires such access to execute and tamper with system files and processes....
). Implementing such a policy requires careful consideration of the relevant human factors.


Number of users per password


Sometimes a single password controls access to a device, for example, for a network router, or password-protected mobile phone. However, in the case of a computer system
Computer security

Computer security is a branch of technology known as information security as applied to computers. The objective of computer security can include protection of information from theft or corruption, or the preservation of availability, as defined in the security policy....
, a password is usually stored for each user account, thus making all access traceable (save, of course, in the case of users sharing passwords). A would-be user on most systems must supply a username as well as a password, almost always at account set up time, and periodically thereafter. If the user supplies a password matching the one stored for the supplied username, he or she is permitted further access into the computer system. This is also the case for a cash machine, except that the 'user name' is typically the account number stored on the bank customer's card, and the PIN is usually quite short (4 to 6 digits).

Allotting separate passwords to each user of a system is preferable to having a single password shared by legitimate users of the system, certainly from a security viewpoint. This is partly because users are more willing to tell another person (who may not be authorized) a shared password than one exclusively for their use. Single passwords are also much less convenient to change because many people need to be told at the same time, and they make removal of a particular user's access more difficult, as for instance on graduation or resignation. Per-user passwords are also essential if users are to be held accountable for their activities, such as making financial transactions or viewing medical records.

Design of the protected software


Common techniques used to improve the security of software systems protected by a password include:

  • Not echoing the password on the display screen as it is being entered or obscuring it as it is typed by using asterisks (*) or bullets (•).
  • Allowing passwords of adequate length (some legacy
    Legacy system

    A legacy system is an old computer system or application program that continues to be used, typically because it still functions for the users' needs, even though newer technology is available....
     operating systems, including early versions of Unix and Windows, limited passwords to an 8 character maximum.
  • Requiring users to re-enter their password after a period of inactivity (a semi log-off policy).
  • Enforcing a password policy
    Password policy

    A password policy is a set of rules designed to enhance computer security by encouraging users to employ strong passwords and use them properly....
     to increase password strength
    Password strength

    Password strength is a measurement of the effectiveness of a password as an authentication credential. Specifically, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to correctly guess it....
     and security.
    • Requiring periodic password changes.
    • Assigning randomly chosen passwords.
    • Requiring minimum or maximum password lengths.
    • Some systems require characters from various character classes in a password -- for example, "must have at least one uppercase and at least one lowercase letter". However, all-lowercase passwords are more secure per keystroke than mixed capitalization passwords.
    • Providing an alternative to keyboard entry (eg, spoken passwords, or biometric
      Biometrics

      Biometrics refers to two different fields of study and application:In biological studies it refers to the collection, synthesis, analysis and management of data in biology....
       passwords).
  • Using encrypted tunnels or password-authenticated key agreement
    Password-authenticated key agreement

    In cryptography, a password-authenticated key agreement method is an interactive method for two or more parties to establish cryptographic keys based on one or more party's knowledge of a password....
     to prevent access to transmitted passwords via network attacks
  • Limiting the number of allowed failures within a given time period (to prevent repeated password guessing). After the limit is reached, further attempts will fail (including correct password attempts) until the beginning of the next time period. However, this is vulnerable to a form of denial of service attack
    Denial-of-service attack

    A denial-of-service attack or distributed denial-of-service attack is an attempt to make a computer resource unavailable to its intended users....
    .
  • Introducing a delay between password submission attempts to slow down automated password guessing programs.


Some of the more stringent policy enforcement measures can pose a risk of alienating users, possibly decreasing security as a result.

Password cracking

Attempting to crack passwords by trying as many possibilities as time and money permit is a brute force attack
Brute force attack

In cryptanalysis, a brute force attack is a method of defeating a cryptographic scheme by systematically trying a large number of possibilities; for example, a large number of the possible key s in a key space in order to decrypt a message....
. A related method, rather more efficient in most cases, is a dictionary attack
Dictionary attack

In cryptanalysis and computer security, a dictionary attack is a technique for defeating a cipher or authentication mechanism by trying to determine its decryption key or passphrase by searching likely possibilities....
. In a dictionary attack, all words in one or more dictionaries are tested. Lists of common passwords are also typically tested.

Password strength
Password strength

Password strength is a measurement of the effectiveness of a password as an authentication credential. Specifically, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to correctly guess it....
 is the likelihood that a password cannot be guessed or discovered, and varies with the attack algorithm used. Passwords easily discovered are termed weak or vulnerable; passwords very difficult or impossible to discover are considered strong. There are several programs available for password attack (or even auditing and recovery by systems personnel) such as L0phtCrack
L0phtCrack

L0phtCrack is a password auditing and password cracking application , originally produced by Mudge from L0pht Heavy Industries. It is used to test password strength and sometimes to recover lost Microsoft Windows passwords, by using dictionary attack, brute force attack, hybrid attacks, and rainbow tables....
, John the Ripper
John the Ripper

John the Ripper is a free software password cracking software tool. Initially developed for the Unix operating system, it currently runs on fifteen different platforms ....
, and Cain
Cain (software)

Cain and Abel is a Microsoft Windows password recovery tool. It can recover many kinds of passwords using methods such as network packet sniffing, cracking various password hashes by using methods such as dictionary attacks, brute force and cryptanalysis attacks....
; some of which use password design vulnerabilities (as found in the Microsoft LANManager system) to increase efficiency. These programs are sometimes used by system administrators to detect weak passwords proposed by users.

Studies of production computer systems have consistently shown that a large fraction of all user-chosen passwords are readily guessed automatically. For example, Columbia University found 22% of user passwords could be recovered with little effort. According to Bruce Schneier
Bruce Schneier

Bruce Schneier is an American cryptographer, computer security specialist, and writer. He is the author of several books on computer security and cryptography, and is the founder and chief technology officer of BT Counterpane, formerly Counterpane Internet Security, Inc....
, examining data from a 2006 phishing
Phishing

In the field of computer security, phishing is the criminally fraudulent process of attempting to acquire sensitive information such as usernames, passwords and credit card details by masquerading as a trustworthy entity in an electronic communication....
 attack, 55% of MySpace passwords would be crackable in 8 hours using a commercially available Password Recovery Toolkit capable of testing 200,000 passwords per second in 2006. He also reported that the single most common password was password1, confirming yet again the general lack of informed care in choosing passwords amongst users. (He nevertheless maintained, based on these data, that the general quality of passwords has improved over the years -- for example, average length was up to eight characters from under seven in previous surveys, and less than 4% were dictionary words. )

Alternatives to passwords for access control

The numerous ways in which permanent or semi-permanent passwords can be compromised has prompted the development of other techniques. Unfortunately, some are inadequate in practice, and in any case few have become universally available for users seeking a more secure alternative.

  • Single-use passwords
    One-time password

    The purpose of a one-time password is to make it more difficult to gain unauthorized access to restricted resources, like a computer account. Traditionally static passwords can more easily be accessed by an unauthorized intruder given enough attempts and time....
    . Having passwords which are only valid once makes many potential attacks ineffective. Most users find single use passwords extremely inconvenient. They have, however, been widely implemented in personal online banking
    Online banking

    Online banking allows customers to conduct financial transactions on a secure website operated by their retail or virtual bank bank, credit union or building society....
    , where they are known as TANs. As most home users only perform a small number of transactions each week, the single use issue has not led to intolerable customer dissatisfaction in this case.
  • Security token
    Security token

    A security token may be a physical device that an authorized user of computer services is given to ease authentication. The term may also refer to software tokens....
    s are similar in some ways to single-use passwords, but the value to be entered is displayed on a small (generally pocketable) item and changes every minute or so.
  • Access controls based on public key cryptography e.g. ssh
    Secure Shell

    Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices. Used primarily on Linux and Unix based systems to access shell accounts, SSH was designed as a replacement for TELNET and other Computer security remote Shell s, which send information, notably passwords, in...
    . The necessary keys are usually too large to memorize (but see proposal ) and must be stored on a local computer, security token or portable memory device, such as a flash disk or floppy disk
    Floppy disk

    A floppy disk is a data storage medium that is composed of a disk of thin, flexible magnetic storage medium encased in a square or rectangle plastic shell....
    .
  • Biometric methods promise authentication based on unalterable personal characteristics, but currently (2008) have high error rates and require additional hardware to scan, for example, fingerprint
    Fingerprint

    A fingerprint is an impression of the friction ridges of all part of the finger. A friction ridge is a raised portion of the epidermis on the palmar or digits or plantar skin, consisting of one or more connected ridge units of friction ridge skin....
    s, iris
    Iris (anatomy)

    The iris is a membrane in the eye, responsible for controlling the amount of light reaching the retina. The iris consists of pigmented fibrovascular tissue known as a stroma of iris....
    es, etc. They have proven easy to spoof in some famous incidents testing commercially available systems, for example, the gummie fingerprint spoof demonstration, and, because these characteristics are unalterable, they cannot be changed if compromised; this is a highly important consideration in access control as a compromised access token is necessarily insecure.
  • Single sign-on
    Single sign-on

    Single sign-on is a method of access control that enables a user to log in once and gain access to the resources of multiple software systems without being prompted to log in again....
     technology is claimed to eliminate the need for having multiple passwords. Such schemes do not relieve user and administrators from choosing reasonable single passwords, nor system designers or administrators from ensuring that private access control information passed among systems enabling single sign-on is secure against attack. As yet, no satisfactory standard has been developed.
  • Envaulting
    Envaulting

    Envaulting is the process of transforming information using a diffusion algorithm and a information entropy bits removing algorithm, to make the information unreadable to anyone except those authorized to view it....
     technology is a password-free way to secure data on e.g. removable storage devices such as flash drives. Instead of user passwords, access control is based on the user's access to a network resource.
  • Non-text-based passwords, such as graphical passwords or mouse-movement based passwords. Another system requires users to select a series of face
    Face

    The term face refers to the central sense organ complex, for those animals that have one, normally on the ventral surface of the head and can depending on the definition in the human case, include the hair, forehead, eyebrow, eyes, nose, ears, cheeks, mouth, lips, philtrum, tooth, skin, and chin....
    s as a password, utilizing the human brain
    Human brain

    The human brain is the center of the human nervous system and is a highly complex organ. It has the same general structure as the brains of other mammals, but is over five times as large as the "average brain" of a mammal with the same body size....
    's ability to recall faces
    Face perception

    Face perception is the process by which the brain and mind understand and interpret the face, particularly the human face.The face is an important site for the identification of others and conveys significant social information....
     easily.. So far, these are promising, but are not widely used.
  • Graphical passwords are an alternative means of authentication
    Authentication

    Authentication is the act of establishing or confirming something as authentic, that is, that claims made by or about the subject are true....
     for log-in intended to be used in place of conventional password; they use images instead of text
    Plain text

    In computing, plain text is a term used for an ordinary "unformatted" sequential file readable as textual material without much processing.The Character encoding has traditionally been either ASCII, one of its many derivatives such as ISO/IEC 646 etc., or sometimes EBCDIC....
    . In some implementations the user is required to pick from a series of images in the correct sequence in order to gain access. While some believe that graphical passwords would be harder to crack
    Password cracking

    Password cracking is the process of recovering passwords from data that has been stored in or transmitted by a computer system. A common approach is to repeatedly try guesses for the password....
    , others suggest that people will be just as likely to pick common images or sequences as they are to pick common passwords.
  • 2D Key
    2D Key

    2D Key is a 2D matrix-like key input method having the key styles of multiline passphrase, crossword, ASCII/Unicode art, with optional textual semantic noises, to create big password/key beyond 128 bits to realize the MePKC using fully memorizable private key upon the current private key management technologies such as encrypted private ke...
     (2-Dimensional Key) is a 2D matrix-like key input method having the key styles of multiline passphrase, crossword, ASCII/Unicode art, with optional textual semantic noises, to create big password/key beyond 128 bits to realize the MePKC (Memorizable Public-Key Cryptography) using fully memorizable private key upon the current private key management technologies like encrypted private key, split private key, and roaming private key.


Website password systems

Passwords are used on websites to authenticate users and are usually maintained on the Web server, meaning the browser on a remote system sends a password to the server (by HTTP POST), the server checks the password and sends back the relevant content (or an access denied message). This process eliminates the possibility of local reverse engineering as the code used to authenticate the password does not reside on the local machine.

Transmission of the password, via the browser, in plaintext means it can be intercepted along its journey to the server. Many web authentication systems use SSL to establish an encrypted session between the browser and the server, and is usually the underlying meaning of claims to have a "secure Web site". This is done automatically by the browser and increases integrity of the session, assuming neither end has be compromised and that the SSL/TSL implementations used are high quality ones.

So-called website password and membership management systems often involve the use of Java
Java (programming language)

Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
 or JavaScript
JavaScript

JavaScript is a scripting language widely used for client-side web development. It was the originating Programming language dialect of the ECMAScript standard....
 code existing on the client side (meaning the visitor's web browser) HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 source code (for example, AuthPro). Drawbacks to such systems are the relative ease in bypassing or circumventing the protection by switching off JavaScript and Meta redirects in the browser, thereby gaining access to the protected web page. Others take advantage of server-side scripting languages such as ASP
Active Server Pages

Active Server Pages , also known as Classic ASP, was Microsoft's first server-side scripting Active Scripting for dynamic web page. Initially released as an add-on to Internet Information Services via the Windows_NT_4.0#Option_Pack, it was subsequently included as a free component of Windows Server ....
 or PHP
PHP

PHP is a scripting language originally designed for producing dynamic web pages. It has evolved to include a command line interface capability and can be used in Standalone software Graphical user interface....
 to authenticate users on the server before delivering the source code to the browser. Popular systems such as and take advantage of technology in which web pages are protected using such scripting language code snippets placed in front of the HTML code in the web page source saved in the appropriate extension on the server, such as .asp or .php.

History of passwords

Passwords or watchwords have been used since ancient times. Polybius
Polybius

Polybius was a Greek historian of the Hellenistic Period noted for his book called The Histories covering in detail the period of 220–146 BC....
 describes the system for distribution watchwords in the Roman military
Military of ancient Rome

The military of ancient Rome Relates To The Combined Military forces of Rome from the founding of the city of Rome in the 8th century BC to the fall of the Western Roman Empire in the 5th century AD....
 as follows:
The way in which they secure the passing round of the watchword for the night is as follows: from the tenth maniple
Maniple (military unit)

Maniple was a tactical unit of the Roman legion adopted from the Samnites during the Samnite Wars. It was also the name of the military insignia carried by such unit....
 of each class of infantry and cavalry, the maniple which is encamped at the lower end of the street, a man is chosen who is relieved from guard duty, and he attends every day at sunset at the tent of the tribune
Tribune

Tribune was a title shared by 10 elected officials in the Roman Republic. Tribunes had the power to convene the Plebeian Council and to act as its president, which also gave them the exclusive right to propose legislation before it....
, and receiving from him the watchword - that is a wooden tablet with the word inscribed on it - takes his leave, and on returning to his quarters passes on the watchword and tablet before witnesses to the commander of the next maniple, who in turn passes it to the one next him. All do the same until it reaches the first maniples, those encamped near the tents of the tribunes. These latter are obliged to deliver the tablet to the tribunes before dark. So that if all those issued are returned, the tribune knows that the watchword has been given to all the maniples, and has passed through all on its way back to him. If any one of them is missing, he makes inquiry at once, as he knows by the marks from what quarter the tablet has not returned, and whoever is responsible for the stoppage meets with the punishment he merits.


Passwords in military use evolved to include not just a password, but a password and a counterpassword; for example in the opening days of the Battle of Normandy
Battle of Normandy

The Invasion of Normandy was the invasion and establishment of Western Allies forces in Normandy, France, during Operation Overlord in World War II....
, paratroopers of the U.S. 101st Airborne Division used a password - "thunder" - which was presented as a challenge, and answered with the correct response - "flash". The challenge and response were changed periodically. American paratroopers also famously used a device known as a "cricket" on D-Day
D-Day

D-Day is a term often used in military parlance to denote the day on which a combat attack or operation is to be initiated. "D-Day" often represents a variable , designating the day upon which some significant event will occur or has occurred; see Military designation of days and hours for similar terms....
 in place of a password system as a temporarily unique method of identification; one metallic click given by the device in lieu of a password was to be met by two clicks in reply.

Passwords have been used with computers since the earliest days of computing. MIT's CTSS, one of the first time sharing systems, was introduced in 1961. It had a LOGIN command that requested a user password. "After typing PASSWORD, the system turns off the printing mechanism, if possible, so that the user may type in his password with privacy." Robert Morris
Robert Morris (cryptographer)

Robert "Bob" H. Morris is an United States cryptographer. He received a bachelor's degree in mathematics from Harvard University in 1957 and a master's degree in mathematics from Harvard University in 1958....
 invented the idea of storing login passwords in a hashed form as part of the Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 operating system. His algorithm, know as crypt(3)
Crypt (Unix)

In Unix computing, crypt is the name of both a utility software and a C function. Though both are used for encrypting data, they are otherwise essentially unrelated....
, used a 12-bit salt
Salt (cryptography)

In cryptography, a salt comprises Random Number Generator bits that are used as one of the inputs to a key derivation function. The other input is usually a password or passphrase....
 and invoked a modified form of the DES
Data Encryption Standard

The Data Encryption Standard is a block cipher that was selected by National Bureau of Standards as an official Federal Information Processing Standard for the United States in 1976 and which has subsequently enjoyed widespread use internationally....
 algorithm 25 times to reduce the risk of Pre-computed dictionary attacks
Dictionary attack

In cryptanalysis and computer security, a dictionary attack is a technique for defeating a cipher or authentication mechanism by trying to determine its decryption key or passphrase by searching likely possibilities....
.

See also

  • Access Code
    Access Code

    An access code is a sequence of characters and/or numbers that allow access to a secure service.Access codes are often used in security systems to permit entry....
  • Authentication
    Authentication

    Authentication is the act of establishing or confirming something as authentic, that is, that claims made by or about the subject are true....
  • CAPTCHA
    CAPTCHA

    A CAPTCHA or Captcha is a type of challenge-response authentication test used in computing to ensure that the response is not generated by a computer....
  • Diceware
    Diceware

    Diceware is a method for creating passphrases, passwords, and other cryptographic variables using ordinary dice as a hardware random number generator....
  • Keyfile
    Keyfile

    A keyfile is a file on a computer which contains encryption or license keys.A common use is web server software running secure socket layer protocols....
  • Passphrase
    Passphrase

    A passphrase is a sequence of words or other text used to access control to a computer system, program or data. A passphrase is similar to a password in usage, but is generally longer for added security....
  • Password manager
    Password manager

    A password manager is software that helps a user organize passwords and personal identification number codes. The software typically has a local database or files that holds the encryption password data....
  • Password policy
    Password policy

    A password policy is a set of rules designed to enhance computer security by encouraging users to employ strong passwords and use them properly....
  • Password strength
    Password strength

    Password strength is a measurement of the effectiveness of a password as an authentication credential. Specifically, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to correctly guess it....
  • Password length parameter
    Password length parameter

    In telecommunication, a password length parameter is a basic parameter which affects password strength against brute force attack and so is a contributor to computer security....
  • Password cracking
    Password cracking

    Password cracking is the process of recovering passwords from data that has been stored in or transmitted by a computer system. A common approach is to repeatedly try guesses for the password....
  • Password fatigue
    Password fatigue

    Password fatigue, also known as Password chaos or identity chaos, is the feeling experienced by computer users who are required to remember an excessive number of passwords as part of their daily routine, having to use a large amount of different software applications which require separate authentication....
  • Password-authenticated key agreement
    Password-authenticated key agreement

    In cryptography, a password-authenticated key agreement method is an interactive method for two or more parties to establish cryptographic keys based on one or more party's knowledge of a password....
  • Password notification e-mail
    Password notification e-mail

    Password notification e-mail is a common technique used by websites. If a user forgets their password then a password notification e-mail is sent containing enough information for the user to access their account again....
  • Password synchronization
    Password synchronization

    Password synchronization is defined as any process or technology that helps users to maintain a single password that is subject to a single security policy, and changes on a single schedule across multiple systems....
  • Pre-shared key
    Pre-shared key

    In cryptography, a pre-shared key or PSK is a shared secret which was previously shared between the two parties using some secure channel before it needs to be used....
  • Random password generator
    Random password generator

    A random password generator is Computer software program or Computer hardware device that takes input from a random or pseudo-random number generator and automatically generates a password....
  • Self-service password reset
  • Shibboleth
    Shibboleth (computer security)

    Within the field of computer security, the word shibboleth is sometimes used with a different meaning than the shibboleth of verbal, linguistic differentiation....


External links


- Cambridge University Computer Laboratory study of password memorability vs. security.