Skip to content

Commit b66a837

Browse files
javiereguiluzJhonnyL
authored andcommitted
Remove a cauion note about StringUtils::equals() which is no longer true
1 parent 8489ab4 commit b66a837

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

components/security/secure_tools.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ algorithm; you can use the same strategy in your own code thanks to the
2121
// is some known string (e.g. password) equal to some user input?
2222
$bool = StringUtils::equals($knownString, $userInput);
2323

24-
.. caution::
25-
26-
To avoid timing attacks, the known string must be the first argument
27-
and the user-entered string the second.
28-
2924
Generating a Secure random Number
3025
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3126

0 commit comments

Comments
 (0)