profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

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