Skip to content

Commit 18ea83c

Browse files
committed
Merge pull request #3325 from FlorianLB/supported_algorithms
[WIP] [security] adding a tip about supported algorithm for 'hash' function
2 parents d42274b + 6cd7516 commit 18ea83c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

book/security.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,11 @@ the password is simply run through the ``sha1`` algorithm one time and without
13581358
any extra encoding. You can now calculate the hashed password either programmatically
13591359
(e.g. ``hash('sha1', 'ryanpass')``) or via some online tool like `functions-online.com`_
13601360

1361+
.. tip::
1362+
1363+
Supported algorithms for this method depend on your PHP version.
1364+
A full list is available calling the PHP function :phpfunction:`hash_algos`.
1365+
13611366
If you're creating your users dynamically (and storing them in a database),
13621367
you can use even tougher hashing algorithms and then rely on an actual password
13631368
encoder object to help you encode passwords. For example, suppose your User

0 commit comments

Comments
 (0)