wiki/content/20201112133736-sodium_password_encoder.md

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