vetkit.swift.crypto.weak-hash
MD5 or SHA-1 is used (CommonCrypto or CryptoKit's Insecure namespace). Both are broken for collision resistance and must not protect integrity, signatures or passwords.
Last updated:
Suite: Security
swift
MD5 or SHA-1 is used (CommonCrypto or CryptoKit's Insecure namespace). Both are broken for collision resistance and must not protect integrity, signatures or passwords.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Use SHA256 from CryptoKit; for passwords use a key-derivation function (PBKDF2 with a high iteration count, scrypt, Argon2).
References
Source: packages/engine/rules/sast/swift.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.