Intent-Code Divergence
Medium
- Confidence
- 88% confidence
- Finding
- The function is labeled as a perceptual hash for images/content similarity, but it only lowercases and whitespace-normalizes text before truncating a SHA256 digest. This can mislead callers into believing they are using a similarity-preserving perceptual hash, causing false deduplication or trust decisions when comparing images or near-duplicate content, which is especially risky in a hashing toolkit intended for verification workflows.
