Skip to content
vetkitChecksChangelogDocumentation

vetkit.c.crypto.weak-password-hash

A password or secret is hashed with MD5 / SHA-1, which can be brute-forced quickly.

Last updated:

Suite: Security

c, cpp

A password or secret is hashed with MD5 / SHA-1, which can be brute-forced quickly.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use a password hashing function such as Argon2id (libsodium crypto_pwhash), scrypt or bcrypt with a per-user salt.

References

Source: packages/engine/rules/sast/c.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.