Basic Authentication vs Digest Authentication

Digest Authentication communicates credentials in an encrypted form by applying a hash function to the username, the password, a server-supplied nonce value, the HTTP method, and the requested URI while Basic Authentication uses unencrypted base64 encoding. It’s highly recommended that Basic Authentication should generally only be used where transport layer security is provided such as HTTPS.