在 Symfony 4.3 中,推荐使用auto
编码算法选项:
# config/packages/security.yaml
security:
# ...
encoders:
# use your user class name here
App\Entity\User:
# Use native password encoder
# This value auto-selects the best possible hashing algorithm.
algorithm: auto
我的问题是关于上面代码中的评论:如果“最好的”算法发生变化,算法会改变吗?如果是这样,这将如何影响当前存在的存储密码?