Which encoding is used for HTTP Basic (username:password) authentication in RESTful APIs?
Choose an answer
Tap an option to check your answer.
Correct answer: Base64.
Why this is the answer
HTTP Basic authentication uses Base64 encoding to transmit the username and password. The credentials are concatenated as username:password and then Base64 encoded. This encoding scheme is not encryption; it merely obfuscates the data, making it unsuitable for protecting sensitive information without an underlying secure transport like HTTPS. MD5 and SHA-1 are cryptographic hash functions used for integrity checks or password storage, not for encoding credentials for transmission. Type-7 is a Cisco proprietary password encryption type, not used for HTTP authentication.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed