24 lines
372 B
Plaintext
24 lines
372 B
Plaintext
![]() |
include::../description.adoc[]
|
||
|
|
||
|
include::../ask-yourself.adoc[]
|
||
|
|
||
|
include::../recommended.adoc[]
|
||
|
|
||
|
== Sensitive Code Example
|
||
|
|
||
|
----
|
||
|
const crypto = require("crypto");
|
||
|
|
||
|
const hash = crypto.createHash('sha1'); // Sensitive
|
||
|
----
|
||
|
|
||
|
== Compliant Solution
|
||
|
|
||
|
----
|
||
|
const crypto = require("crypto");
|
||
|
|
||
|
const hash = crypto.createHash('sha256'); // Compliant
|
||
|
----
|
||
|
|
||
|
include::../see.adoc[]
|