350-701 · Question #702
What is a difference between encrypted passwords and hardcoded passwords?
The correct answer is D. Encrypted passwords are stored in a database, and hardcoded passwords are embedded in the. Encrypted passwords are typically stored securely in a database after being hashed, while hardcoded passwords are directly embedded into application source code or configuration, posing a significant security risk.
Question
What is a difference between encrypted passwords and hardcoded passwords?
Options
- AEncrypted passwords are easier to obtain, and hardcoded passwords are known only to
- BEncrypted passwords are generated by an application user, and hardcoded passwords are
- CEncrypted passwords are used for frontend applications, and hardcoded passwords are used for
- DEncrypted passwords are stored in a database, and hardcoded passwords are embedded in the
How the community answered
(49 responses)- A2% (1)
- B6% (3)
- C4% (2)
- D88% (43)
Why each option
Encrypted passwords are typically stored securely in a database after being hashed, while hardcoded passwords are directly embedded into application source code or configuration, posing a significant security risk.
Encrypted/hashed passwords are designed to be *difficult* to obtain or reverse, whereas hardcoded passwords, once discovered in code, become universally known to anyone with access to that code.
Encrypted passwords are derived from user-generated input and then processed by the application, while hardcoded passwords are predetermined by developers and fixed within the code, making the statement inaccurate about generation.
The usage of encrypted or hardcoded passwords is not inherently differentiated by frontend versus backend applications; hardcoding passwords is a security anti-pattern regardless of where it occurs in an application's architecture.
Encrypted passwords (more accurately, hashed passwords) are securely stored in a database or designated storage and are computationally difficult to reverse, whereas hardcoded passwords are directly embedded within the application's source code, configuration files, or binaries, making them static and easily discoverable upon code review.
Concept tested: Password Security Practices (Encryption vs. Hardcoding)
Source: https://www.owasp.org/www-project-top-ten/OWASP_Top_Ten_2017/Hardcoded_Credentials
Topics
Community Discussion
No community discussion yet for this question.