liveBook · Manning

Authentication

As explained in Real-World Cryptography

A process for verifying the identity of a human user using credentials such as passwords or cryptographic keys.

Authentication verifies that something is genuine or valid. In cryptography, it has two related meanings: proving that a message has not been modified, and proving that a person or machine is who it claims to be. section 11.1

For user authentication, a device verifies a human through credentials such as passwords or keys. The usual setting already has an authenticated server and a secure connection, so the user’s proof upgrades one-way authentication to mutual authentication. section 11.0 section 11.2

Keep these authentication cases separate:

  • Message or payload authentication proves that a message is genuine and has not been changed. section 11.1
  • Identity authentication proves that a person or machine really is who it claims to be. section 11.1
  • User authentication has no universal solution: passwords can be exposed through poor storage, database breaches, or weak account recovery. section 11.2
  • After successful login, a service commonly issues a cookie for later requests instead of repeatedly requesting the credentials. section 11.2
Figure 11.1 In this book, I talk about origin authentication in three types of scenarios. User authentication happens when a device authenticates a human being. Machine authentication happens when a machine authenticates another machine. User-aided authentication happens when a human is involved in a machine authenticating another machine.

Origin authentication appears in three scenarios: a device authenticating a human, a machine authenticating another machine, or a human helping machines authenticate one another. section 11.1

Logging in over HTTPS

A user visits a website through HTTPS, registers a username and password, and later logs in. The server is authenticated and the connection is secured; the login credentials then authenticate the user. Storing passwords in cleartext would make a database breach immediately reveal them. section 11.2

How Real-World Cryptography covers it

How deep it goes
Distinguishes message and identity authentication, then sketches user-login assumptions and password failure modes without detailing recovery.
Examples
Uses authenticated messages, HTTPS login, passwords, database breaches, cookies, TLS, Signal, and public key infrastructure as examples.
What it assumes
Assumes basic cryptography and secure connections while clarifying authentication terminology from first principles.
What you can do after
Evaluate authentication designs by separating message integrity from identity proof and spotting unsafe password storage or recovery assumptions.
How it connects
Connects authentication with confidentiality, cryptographic primitives, TLS, Signal, public key infrastructure, and trust on first use.

Also explained in

Compare how 34 books explain authentication →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.