350-401 · Question #1264
Which encoding is used to protect a username and login with RESTful API basic authentication?
The correct answer is A. Base64. Basic authentication for RESTful APIs uses a specific encoding scheme to transmit user credentials.
Question
Options
- ABase64
- BMD5
- CSHA-1
- DType-7
How the community answered
(32 responses)- A91% (29)
- B6% (2)
- D3% (1)
Why each option
Basic authentication for RESTful APIs uses a specific encoding scheme to transmit user credentials.
RESTful API basic authentication employs Base64 encoding to transform the username and password (concatenated with a colon) into a string that can be safely transmitted over HTTP. Although it is not an encryption method, it serves as a common encoding standard for this authentication mechanism, often used in conjunction with HTTPS for secure communication.
MD5 is a cryptographic hashing algorithm used for data integrity verification or one-way password storage, not for encoding credentials for basic authentication.
SHA-1 is a cryptographic hashing algorithm, similar to MD5, used for digital signatures or integrity checks, and is not utilized for encoding basic authentication credentials.
Type-7 is a proprietary, weak obfuscation scheme used by Cisco IOS for storing passwords in configuration files, and it is not a standard encoding method for RESTful API basic authentication.
Concept tested: RESTful API Basic Authentication encoding
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
Topics
Community Discussion
No community discussion yet for this question.