Hashing and Hash-based Functions

V11.4.1

Verify that only approved hash functions are used for general cryptographic use cases, including digital signatures, HMAC, KDF, and random bit generation. Disallowed hash functions, such as MD5, must not be used for any cryptographic purpose.

Required for Level 1, 2 and 3

CAPEC™ (3.9): 112, 114, 145, 157, 162, 20, 204, 216, 218, 220, 272, 31, 37, 39, 461, 473, 55, 594, 620, 68, 94, 97

V11.4.2

Verify that passwords are stored using an approved, computationally intensive, key derivation function (also known as a "password hashing function"), with parameter settings configured based on current guidance. The settings should balance security and performance to make brute-force attacks sufficiently challenging for the required level of security.

Required for Level 2 and 3

CAPEC™ (3.9): 112, 20, 31, 37, 473, 55, 97

V11.4.3

Verify that hash functions used in digital signatures, as part of data authentication or data integrity are collision resistant and have appropriate bit-lengths. If collision resistance is required, the output length must be at least 256 bits. If only resistance to second pre-image attacks is required, the output length must be at least 128 bits.

Required for Level 2 and 3

CAPEC™ (3.9): 112, 114, 145, 157, 184, 20, 216, 218, 220, 272, 31, 37, 39, 438, 442, 473, 475, 523, 55, 594, 620, 68, 690, 75, 94, 97

V11.4.4

Verify that the application uses approved key derivation functions with key stretching parameters when deriving secret keys from passwords. The parameters in use must balance security and performance to prevent brute-force attacks from compromising the resulting cryptographic key.

Required for Level 2 and 3

CAPEC™ (3.9): 112, 20, 31, 37, 473, 55, 97

Disclaimer

Credit via OWASP ASVS.For more information visit: The OWASP ASVS Project or Github respository.. OWASP ASVS is under the Creative Commons Attribution-Share Alike v4.0 license.

Github logo View source on GitHub

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.