The History of the Password

Matt George

Fractional CTO · Founder of Injuria.ai

•15 min read•

The History of the Password

The password began not as a security bulwark, but as a simple gatekeeper for a scarce resource: time on a multi-million dollar mainframe. Conceived in the early 1960s, it was a secret word that allowed researchers at MIT to protect their files from one another on a shared computer. For decades, its evolution was a technical arms race, a story of digital locks and the computational lockpicks designed to break them. Each new generation of computing, from time-sharing mainframes to the global internet, exposed a new weakness in the password concept, forcing a reactive and often patchwork response.

The fundamental tension of the password has always been its reliance on the most fallible part of the system: the human user. A password must be remembered by a person but must also be complex enough to resist guessing by a machine. This conflict between human memory and computational power defined the password's history. The initial plaintext lists gave way to one-way cryptographic hashes, which in turn were attacked by faster processors. Hashing algorithms grew stronger and slower, but the core vulnerability remained. The theft of massive password databases in the 21st century finally made the problem undeniable, fueling credential stuffing attacks and proving that a secret shared between a user and a server is a liability waiting to be exposed.

This history is not just about failure, but about a persistent and increasingly sophisticated search for a better solution. From the invention of the salt to the development of memory-hard hashing functions, engineers have built ever-higher walls to protect the flawed foundation. Today, the industry is in the midst of the most significant shift in authentication since the password's inception. A concerted effort, built on open standards and public-key cryptography, aims to finally move beyond the shared secret, replacing the password not with a more complex version of itself, but with a fundamentally more secure and user-friendly paradigm. This is the story of that journey, from a simple convenience to a global vulnerability, and now, toward its eventual succession.

The Mainframe Era (1960 to 1970)

The story of the digital password begins at the Massachusetts Institute of Technology (MIT)[1] in the early 1960s. The institute was a hub of pioneering computer research, centered on immensely expensive mainframe computers like the IBM 7090. To maximize the utility of this hardware, MIT's Project MAC developed the Compatible Time-Sharing System (CTSS)[2], one of the first systems of its kind. CTSS allowed multiple users to connect to the mainframe simultaneously via remote terminals, creating a new and urgent problem: how to keep one user's files separate and private from another's.

The solution was devised by a team led by Fernando J. Corbató[3], who would later win a Turing Award for his work on time-sharing. He and his team introduced a login command that required a private password for each user account. This was the first practical implementation of a password system for a general-purpose computer. The goal was not to defend against malicious external attackers, who were not a concern at the time, but to provide basic privacy and resource accounting among a trusted group of researchers. As described in historical accounts like Mark Burnett's Perfect Password[4], it was a mechanism for orderly cooperation.

The initial implementation was rudimentary. Passwords were stored together in a single file, unprotected by any form of encryption. This vulnerability was discovered by accident. The incident involving Allan L. Scherr[5] printing the master password file occurred in 1966, not 1962. Scherr needed more computer time than the four hours per week he was allotted. He discovered he could submit a system request to print any file, including the master password file, which he did one weekend in the spring of 1966. In another telling, a programmer inadvertently printed the password file, which had been temporarily swapped with the daily system message by an operator. Regardless of the exact details, the result was the same: the plaintext passwords for every user on the system were exposed. This early breach demonstrated a foundational weakness that would haunt security engineers for decades: a stored password, if accessible, is a critical vulnerability.

The Invention of Hashing (1970 to 1980)

As computing moved from the exclusive domain of research labs toward wider use, the lessons from CTSS informed the next generation of operating systems. The most influential of these was Unix[6], developed at Bell Labs by a team that included Ken Thompson[7] and Dennis Ritchie[8]. They understood the flaw in storing plaintext passwords and sought a more robust solution.

The breakthrough came from cryptographer Robert Morris Sr.[9] He proposed a system where the operating system would not store the password itself, but rather the result of a one-way mathematical function applied to it. This function, known as a cryptographic hash, is easy to compute in one direction but is computationally infeasible to reverse. When a user tried to log in, the system would hash the password they entered and compare the result to the stored hash. If they matched, access was granted. An attacker who stole the password file would only have a list of hashes, not the passwords themselves.

The crypt Function and Salt

This idea was implemented in the crypt(3) function for Unix. Morris based the function on a modified version of the Data Encryption Standard (DES)[10] algorithm. The modifications were deliberate, designed to thwart attempts to use specialized DES hardware to accelerate password cracking. The system also introduced another critical innovation: salt. Salt is a short, random string of data that is generated for each user and stored along with their hashed password. This salt is combined with the user's password before hashing.

The purpose of salt was to defeat a specific type of attack. Without salt, an attacker could pre-compute a dictionary of common passwords and their corresponding hashes. They could then compare these pre-computed hashes against a stolen password file to find matches quickly. Salt rendered this technique useless. Since each user had a different salt, two users with the same password (e.g., "password") would have completely different stored hashes. An attacker would have to crack each password individually, a much slower process. The design of this system was detailed by Morris and Thompson in their 1979 paper, "Password Security: A Case History".

This hashed and salted password system, stored in the world-readable /etc/passwd file, was a monumental leap forward. It established a paradigm for password storage that would dominate for the next two decades. The decision to make the file readable by any user on the system was based on the confidence that the crypt function was strong enough to resist brute-force attacks with the computing power of the era. This assumption, while reasonable in the 1970s, would eventually crumble.

The Networked World and Early Cracks (1980 to 1995)

The 1980s saw the rise of computer networks, connecting universities, government agencies, and research institutions. The ARPANET[11], the precursor to the modern internet, grew rapidly. This new connectivity changed the threat model for passwords. No longer were they just protecting local files on a single machine; they were now being sent across wires, creating new opportunities for interception.

Early network protocols were designed for functionality in a trusted environment, not for security in an adversarial one. Services like Telnet[12] (for remote login) and FTP[13] (for file transfer) transmitted usernames and passwords across the network in cleartext. Anyone with the ability to "sniff" or monitor network traffic could capture these credentials. This vulnerability was widely known among network engineers but was considered a manageable risk in the small, academic community of the early internet.

This perception was shattered on November 2, 1988, by the Morris Worm[14]. Unleashed by Cornell graduate student Robert Tappan Morris[15] (the son of the crypt designer), the worm spread rapidly across the internet, infecting an estimated 10% of all connected computers. One of its primary methods of propagation was password guessing. It used a small dictionary of common passwords and user-related terms to try to log in to other machines. The worm's success was a stark demonstration of the danger of weak, default, or easily guessable passwords, and it served as a major wake-up call about the security implications of a globally connected network.

In response to the growing threat of password cracking, both offline and over the network, Unix systems began to evolve. The world-readable /etc/passwd file was now seen as a significant liability. As computers became faster, brute-force attacks against the hashes it contained became increasingly practical. The solution was the shadow password file. The password hashes were moved to a separate file, /etc/shadow, which could only be read by the system administrator (the root user). The original /etc/passwd file remained world-readable to provide user information to other programs, but it no longer contained the critical password data. This separation of data from permissions was a simple but effective hardening measure that became a standard feature of modern Unix-like systems.

The World Wide Web and Commercialization (1995 to 2005)

The popularization of the World Wide Web in the mid-1990s transformed the password from a tool for system administrators and researchers into a daily interaction for millions of ordinary people. Every online bank, email service, and e-commerce site needed a way to authenticate its users, and the password was the familiar and easy-to-implement solution.

The initial web standard for authentication was HTTP Basic Authentication[16]. It was simple, but it was also profoundly insecure. It transmitted the username and password over the network after encoding them with Base64[17]. Base64 is an encoding scheme, not encryption, and can be trivially reversed to reveal the plaintext credentials. This meant that, like with Telnet and FTP, anyone sniffing traffic could steal logins.

The solution to protecting credentials in transit was the development of Secure Sockets Layer (SSL)[18], which later evolved into Transport Layer Security (TLS). SSL was first included in a public product with the release of Netscape Navigator 1.0 on December 15, 1994. The widely cited 1995 date refers to the release of SSL version 2.0 in February of that year. Any data sent through this tunnel, including passwords from a login form, is protected from eavesdropping. The widespread adoption of SSL/TLS, standardized in RFC 2246 for TLS 1.0[19], was essential for the growth of e-commerce and online services. It secured the connection, but the challenge of securely storing passwords on the server remained.

The Hashing Arms Race

By the late 1990s, Moore's Law had rendered the original Unix crypt function obsolete. Its 56-bit DES key and fixed, small number of iterations were no match for contemporary processors. A new generation of password hashing algorithms was needed.

  • MD5-based crypt (md5crypt): Developed by Poul-Henning Kamp[20] for the FreeBSD operating system, this scheme used the MD5[21] hash function. It supported much longer passwords and, crucially, a variable iteration count. System administrators could increase the number of hashing rounds to make cracking more difficult, providing a way to keep pace with increasing computer speeds.
  • bcrypt: In 1999, security researchers Niels Provos[22] and David Mazières presented a new password hashing function called bcrypt[23] at the USENIX conference. Based on the Blowfish encryption cipher, bcrypt was designed from the ground up to be slow. It introduced a configurable "cost factor" that allowed the computation time to be increased exponentially. This deliberate slowness made it much more resistant to brute-force attacks using the parallel processing power of custom hardware like Field-Programmable Gate Arrays (FPGAs). Bcrypt's focus on tunable performance established it as a best practice for password storage for over a decade.

The Era of Megabreaches and the Hashing Arms Race (2005 to 2015)

The first decade of the 21st century saw the consolidation of user data into massive, centralized web services. This concentration of data created a new and tempting target for attackers: the password database. The period was defined by a series of catastrophic data breaches that exposed the passwords of hundreds of millions of users and revealed systemic failures in password security practices.

  • In 2009, the social gaming site RockYou[24] was breached, exposing over 32 million user accounts. The investigation revealed that the passwords had been stored in plaintext, a shocking failure of basic security principles.
  • In 2012, a hacker leaked 6.5 million password hashes from the professional networking site LinkedIn[25]. The hashes were unsalted and created with the fast SHA-1 algorithm, making them trivial to crack in bulk. Within days, massive lists of the cracked passwords were circulating online.
  • An August 2013 breach of Yahoo's[26] systems was initially reported to have affected over 1 billion accounts, but in October 2017[27] the company updated that estimate to all 3 billion users; a separate breach in late 2014 affected 500 million accounts. The company's use of the outdated and broken MD5 hashing algorithm for password protection was heavily criticized.

These megabreaches had a dangerous side effect: credential stuffing[28]. Because many users reuse the same password across multiple services, attackers could take the username and password combinations from one breach and automate login attempts on other sites, like banks and email providers. A breach at one company now endangered users across the entire internet. The era of megabreaches proved that relying on a shared secret was fundamentally broken at scale, a theme detailed in books like Stig F. Mjølsnes's Technology and Practice of Passwords[29].

Memory-Hard Functions

The arms race between defenders and attackers escalated. While bcrypt was a significant improvement, the rise of Graphics Processing Units (GPUs) for general-purpose computing gave attackers a new, highly parallel, and cost-effective tool for cracking hashes. This led to the development of a new class of algorithms designed to counter GPU-based attacks.

  • scrypt: In 2009, security researcher Colin Percival[30] introduced scrypt[31]. Its key innovation was being "memory-hard." In addition to requiring significant CPU time, scrypt also required a large amount of RAM to compute. This is easy for a server authenticating one user at a time, but it makes parallelization extremely expensive for an attacker, as each cracking core on a GPU would need its own large block of memory. Percival outlined the design in his paper "Stronger Key Derivation via Sequential Memory-Hard Functions."[32]
  • Argon2: To standardize the next generation of password hashing, a public Password Hashing Competition (PHC)[33] was held from 2013 to 2015. The winner was Argon2[34], a memory-hard function that is highly configurable and resistant to a wide variety of attacks, including those using GPUs and custom hardware. It is now widely recommended by cryptographers for new applications that require password storage.

The Quest for a Successor (2015 to Present)

Despite the development of sophisticated hashing algorithms like Argon2, the industry came to a consensus: the password itself was the problem. No amount of server-side protection could fix the weaknesses inherent in a system that relied on human-memorable secrets. Users continued to choose weak passwords, reuse them across sites, and fall victim to phishing attacks that tricked them into revealing their credentials.

Multi-Factor Authentication (MFA)

The first major step away from password-only security was the widespread adoption of Multi-Factor Authentication (MFA). MFA requires a user to provide two or more pieces of evidence (factors) to prove their identity. These factors fall into three categories: something you know (a password or PIN), something you have (a mobile phone or hardware key), and something you are (a fingerprint or face scan). While initially cumbersome, the user experience improved dramatically with the rise of smartphones.

  • Authenticator Apps: Instead of relying on insecure SMS messages for one-time codes, apps using the Time-based One-Time Password (TOTP[35]) standard became popular. These apps generate a fresh, short-lived code every 30 or 60 seconds.
  • Hardware Security Keys: The most secure form of MFA came from hardware keys based on the Universal 2nd Factor (U2F) standard. These small USB or NFC devices complete a cryptographic challenge-response with the service, making them resistant to phishing.

The Passwordless Future: WebAuthn and Passkeys

The ultimate goal is to eliminate the shared secret entirely. This led to the formation of the FIDO Alliance[36] in 2013, an open industry consortium dedicated to creating new standards for secure, passwordless authentication.

The most important standard to emerge from this collaboration is WebAuthn[37]. Adopted as a W3C web standard in 2019, WebAuthn allows users to log in to websites using public-key cryptography. The process works as follows:

  1. Registration: When a user creates an account, their device (a phone, a laptop with a secure enclave, or a hardware security key) generates a new, unique pair of cryptographic keys. The private key is stored securely and never leaves the device. The public key is sent to the website's server.
  2. Authentication: To log in, the server sends a challenge to the device. The device uses the private key to sign the challenge, which requires the user to perform a local gesture, like a fingerprint scan, face recognition, or entering a device PIN. This signed challenge is sent back to the server.
  3. Verification: The server uses the stored public key to verify the signature. If it is valid, the user is logged in.

This architecture solves the biggest problems with passwords. There is no shared secret to be stolen from a server database. Because the key pair is bound to a specific website origin, the system is immune to phishing. A user cannot be tricked into using their credential on a fake site.

To make this technology more accessible, major technology companies like Apple, Google, and Microsoft have collaborated on a user-friendly implementation called passkeys. Passkeys are FIDO credentials that can sync across a user's devices via their cloud account, removing the friction of being tied to a single piece of hardware. This coordinated push has finally made a viable, scalable, and more secure successor to the password a reality. While passwords will linger for years in legacy systems, the path toward their replacement is now clearly paved by open standards and cryptographic principles, bringing the six-decade journey of the password toward its final chapter.

Sources (37)
  1. Massachusetts Institute of Technology (MIT)
  2. Wikipedia: Compatible Time-Sharing System
  3. Wikipedia: Fernando J. Corbató
  4. Google Books: Perfect Password by Mark Burnett
  5. Wikipedia: Allan L. Scherr
  6. Wikipedia: Unix
  7. Wikipedia: Ken Thompson
  8. Wikipedia: Dennis Ritchie
  9. Wikipedia: Robert Morris (cryptographer)
  10. Wikipedia: Data Encryption Standard (DES)
  11. Wikipedia: ARPANET
  12. Wikipedia: Telnet
  13. Wikipedia: File Transfer Protocol (FTP)
  14. Wikipedia: Morris Worm
  15. Wikipedia: Robert Tappan Morris
  16. RFC 7617: The 'Basic' HTTP Authentication Scheme
  17. Wikipedia: Base64
  18. Wikipedia: Transport Layer Security (SSL/TLS)
  19. RFC 2246: The TLS Protocol Version 1.0
  20. Wikipedia: Poul-Henning Kamp
  21. Wikipedia: MD5
  22. Wikipedia: Niels Provos
  23. Wikipedia: bcrypt
  24. Wikipedia: RockYou
  25. Wikipedia: 2012 LinkedIn hack
  26. Wikipedia: Yahoo! data breaches
  27. theguardian.com
  28. Wikipedia: Credential stuffing
  29. Google Books: Technology and Practice of Passwords
  30. Wikipedia: Colin Percival
  31. Wikipedia: scrypt
  32. Tarsnap: Stronger Key Derivation via Sequential Memory-Hard Functions
  33. Password Hashing Competition (PHC)
  34. Wikipedia: Argon2
  35. RFC 6238: Time-based One-Time Password (TOTP)
  36. FIDO Alliance
  37. W3C: Web Authentication (WebAuthn)

Recommended reading