Decode a Basic auth header
QuizEasy-MediumAsked in: Accenture, Capgemini, Infosys
A request carries this header:
Authorization: Basic YWRtaW46c2VjcmV0
Which statement is true?
- It is base64 of admin:secret; anyone who sees it can decode the password, so Basic auth must only travel over HTTPS
- It is an encrypted password that only the server can read
- It is a hash of the password (a scrambled value that cannot be turned back), so it cannot be reversed
- It is a JWT
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.