Security

Give an example of basic authentication process

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A user uses the browser to authenticate to some server. It does so by using the authorization field which is constructed from the username and the password combined with a single colon. The result string is encoded using a certain character set which is compatible with US-ASCII. The authorization method + a space is prepended to the encoded string.