mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-21 19:16:23 +00:00
534 B
534 B
date | id | title |
---|---|---|
2020-11-12 | ebc9cf71-62ed-44fa-98c6-b2d01fbd69fe | Sodium password encoder |
Description
In Symfony 4.3, the Symfony Argon2i Password
Hasher is deprecated.
SodiumPasswordEncoder
is used instead. Best practice since Symfony
4.3 is to use the native
encoder.
Syntax
# config/packages/security.yml
security:
# ...
encoders:
App\Entity\User:
algorithm: sodium