symfony4.4加密密码时报错Libsodium is not available. You should either install the sodium extension, upgrade

报错:

"Libsodium is not available. You should either install the sodium extension, upgrade to PHP 7.2+ or use a different encoder."

原因:

报错说让把php根系到7.2以上,但我的php已经是7.2.26,所以推测为sodium加密库的兼容问题

解决:

algorithm: sodium   改为  algorithm: sha256  或者其他

posted @ 2021-04-22 17:04  我的五年  阅读(9)  评论(0)    收藏  举报  来源