nerdexam
Cisco

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.

Submitted by valeria.br· Mar 6, 2026Automation

Question

Which encoding is used to protect a username and login with RESTful API basic authentication?

Options

  • ABase64
  • BMD5
  • CSHA-1
  • DType-7

How the community answered

(32 responses)
  • A
    91% (29)
  • B
    6% (2)
  • D
    3% (1)

Why each option

Basic authentication for RESTful APIs uses a specific encoding scheme to transmit user credentials.

ABase64Correct

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.

BMD5

MD5 is a cryptographic hashing algorithm used for data integrity verification or one-way password storage, not for encoding credentials for basic authentication.

CSHA-1

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.

DType-7

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

#REST API#Base64#basic authentication#API security

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice