In basic HTTP authentication, the client passes their username and password in the HTTP request header . Typically, using this technique we encrypt user credentials string into base64 encoded string and decrypt this base64 encoded string into plain text. You can also use another encryption and decryption technique.