# Password Complexity

> Which is more secure: a short complex password or a long passphrase? What password policy would you implement for a new app?

Canonical: https://www.internhack.in/learn/interview/web-security/security-password-complexity
Last updated: 2026-11-28

Difficulty: Beginner

## Question

Which is more secure: a short complex password or a long passphrase? What password policy would you implement for a new app?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Password Entropy, Passphrases, NIST SP 800-63B, Breached Password Checks, Password Policy

Previous: [Broken Access Control](https://www.internhack.in/learn/interview/web-security/security-broken-access-control) · Next: [DoS vs. DDoS](https://www.internhack.in/learn/interview/web-security/security-dos-vs-ddos) · [All of Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)

## More Web Security (OWASP, JWT, XSS, CSRF) questions

- [Man-in-the-Middle (MITM)](https://www.internhack.in/learn/interview/web-security/security-man-in-the-middle)
- [Homograph Attack](https://www.internhack.in/learn/interview/web-security/security-homograph-attack)
- [The Purpose of Salt](https://www.internhack.in/learn/interview/web-security/security-salting-passwords)
- [Pepper vs. Salt](https://www.internhack.in/learn/interview/web-security/security-peppering-passwords)
- [Insecure Deserialization](https://www.internhack.in/learn/interview/web-security/security-insecure-deserialization)
- [JSON Poisoning](https://www.internhack.in/learn/interview/web-security/security-json-poisoning)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Web Security (OWASP, JWT, XSS, CSRF)](https://www.internhack.in/learn/interview/web-security)
