21 lines
345 B
Plaintext
21 lines
345 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
----
|
|
$password = md5($password); // Sensitive
|
|
$password = sha1($password); // Sensitive
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
----
|
|
$password = password_hash($password, PASSWORD_BCRYPT); // Compliant
|
|
----
|
|
|
|
include::../see.adoc[]
|