Auth.html


* created: 2026-05-07T19:16
* modified: 2026-06-07T22:26

title

Title

description

Description

Authentication and Authorization

While being similar and often combined these are two separate concerns.

Authentication

The authentication process consists of 4 distinct steps:

  1. Receiving authentication data
  2. Extracting unique features
  3. Comparison with reference data
  4. Final Authentication

Most authentication procedures are based around secrets:

The authentication can be split into verification, which means comparing the authentication data with the reference data (1:1) and identification were we compare the authentication data against the reference data of all registered people (1:n).

Knowledge based authentication

Uses secret knowledge like a pin or password which is not known to anyone else. This secret needs to be complex enough such that it can't be guessed, and it should be changed frequently.

Example authentication steps:

  1. Typing in your password
  2. Hashing the password
  3. Comparing hash with reference hash
  4. Identical or not identical, that's the question lol

Possession based Authentication

Biometric Authentication

Static: Stuff like a fingerprint or a retina scan, which tend to be more consistently recognizable unless you have sweaty hands for example.

Dynamic: This refers to stuff like your handwriting or typing pattern, which are pretty to recognize consistently, but can be a great addition for multifactor authentication.

Error-Rate

Biometric authenticaiton can be quite unreliable; producing false negatives when trying to unlock with wet hands or false positives when your smartphone grants access to your twin brother via face id. The following 3 metrics are used to compare these kinds of errors between systems: