Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In the context of
an HTTP transaction, the basic access authentication is a method
designed to allow a web browser, or other client program, to provide
credentials - in the form of a user name and password - when making a
request. Before transmission, the user name is appended with a colon and
concatenated with the password. The resulting string is encoded with the
Base64 algorithm. For example, given the user name Aladdin and password
open sesame, the string Aladdin:open sesame is Base64 encoded, resulting
in QWxhZGRpbjpvcGVuIHNlc2FtZQ==. The Base64-encoded string is
transmitted and decoded by the receiver, resulting in the
colon-separated user name and password string. While encoding the user
name and password with the Base64 algorithm typically makes them
unreadable by the naked eye, they are as easily decoded as they are
encoded. Security is not the intent of the encoding step. Rather, the
intent of the encoding is to encode non-HTTP-compatible characters that
may be in the user name or password into those that are HTTP-compatible.