FOSUserBundle: Using BCrypt Password Encoder
In security.yml file:
security:
encoders:
FOS\UserBundle\Model\UserInterface:
algorithm: bcrypt
cost: 15
Reference:
http://symfony.com/doc/2.3/reference/configuration/security.html#reference-security-bcrypt
- The BCrypt password encoder was introduced in Symfony 2.2.
Written by Andréia Bohner
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Security
Authors
Did you know?
Most application security programs still stop at the repository. The page a visitor loads can run third-party scripts that read the DOM, change a checkout, or steal a session after the deploy already looks clean.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#