mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-21 19:16:23 +00:00
780 B
780 B
date | id | title |
---|---|---|
2020-11-10 | 7cc0b66c-a7df-48c7-9caf-f934f159112d | Symfony Argon2i Password Hasher |
IMPORTANT
Deprecated in Symfony 4.3 and replaced with Sodium password encoder!!!
Introduction
Added in Symfony 4.1, Symfony now supports Argon1 password hashes.
Syntax
# config/packages/security.yaml
security:
# ...
encoders:
App\Entity\User:
algorithm: "argon2i"
# maximum memory (in KiB) that may be used to compute the Argon2 hash
memory_cost: 1024
# number of times the Argon2 hash algorithm will be run
time_cost: 3