Skip to content

Commit 1a4b5fa

Browse files
committed
Reword
1 parent 64460d5 commit 1a4b5fa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/security/secure_tools.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ to work correctly. Just pass a file name to enable it::
6060
.. tip::
6161

6262
The ``nextBytes()`` method returns a binary string which may contain the
63-
``\0`` character. If you store this value in a database or include it as
64-
part of the URL, make sure to hash the value returned by ``nextBytes()``
65-
(to do that, you can use a simple ``md5()`` PHP function).
63+
``\0`` character. This can cause troubles in lots of common scenarios, such
64+
as storing this value in a database or including it as part of the URL. The
65+
solution is to hash the value returned by ``nextBytes()`` (to do that, you
66+
can use a simple ``md5()`` PHP function).
6667

6768
.. _`Timing attack`: http://en.wikipedia.org/wiki/Timing_attack

0 commit comments

Comments
 (0)