From e96416bf1810f418ba9dfc2d798bce2383589f52 Mon Sep 17 00:00:00 2001 From: Mathieu Date: Sat, 5 Dec 2015 10:39:12 +0100 Subject: [PATCH 1/2] Update security.rst --- book/security.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/book/security.rst b/book/security.rst index 5953e702654..9e679727d14 100644 --- a/book/security.rst +++ b/book/security.rst @@ -513,8 +513,13 @@ else, you'll want to encode their passwords. The best algorithm to use is .. include:: /cookbook/security/_ircmaxwell_password-compat.rst.inc Of course, your users' passwords now need to be encoded with this exact algorithm. -For hardcoded users, you can use an `online tool`_, which will give you something -like this: +For hardcoded users, since 2.7 you can use the built-in command : + +.. code-block:: bash + + $ php bin/console security:encode-password + +It will give you something like this: .. configuration-block:: @@ -1413,7 +1418,6 @@ Learn More from the Cookbook * :doc:`/cookbook/security/remember_me` * :doc:`/cookbook/security/multiple_user_providers` -.. _`online tool`: https://www.dailycred.com/blog/12/bcrypt-calculator .. _`frameworkextrabundle documentation`: https://symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/index.html .. _`security advisories database`: https://github.com/FriendsOfPHP/security-advisories .. _`HWIOAuthBundle`: https://github.com/hwi/HWIOAuthBundle From 4ee6cb2ed147eacb95cb9b147e6144c6018ab104 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 9 Dec 2015 09:18:26 +0100 Subject: [PATCH 2/2] [#5956] change bin/console to app/console --- book/security.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/security.rst b/book/security.rst index 9e679727d14..b901c46611a 100644 --- a/book/security.rst +++ b/book/security.rst @@ -517,7 +517,7 @@ For hardcoded users, since 2.7 you can use the built-in command : .. code-block:: bash - $ php bin/console security:encode-password + $ php app/console security:encode-password It will give you something like this: