
ONebesky503272 (Community Member) asked a question.
Run into this weird flaw with native crypto module in nodejs. Hashing function got flagged as unsafe SQL operation as "CWE-943: Improper Neutralization of Special Elements in Data Query Logic"
Here is a simple example:
```
import crypto from 'crypto';
static fastHash(text: string) {
return crypto
.createHash('sha1')
.update(text) // this is the line with flaw
.digest('base64');
}
```
Is there a way to tell the static code analyzer to ignore this line of code? Thanks in advance!
.png)
Hi @ONebesky503272 (Community Member) ,
It appears you may have run into an issue in the platform. I would ask you to please contact our technical support team so they can investigate.
Here's how you can log a case:
Best regards,
Duncan