Bcrypt hashedSecret too short to be a bcrypted password

[复制链接]
1498|0
 楼主| keer_zu 发表于 2020-11-10 17:54 | 显示全部楼层 |阅读模式
https://stackoverflow.com/questi ... a-bcrypted-password

bcrypt produces hashes of 59-60 bytes (see this answer for details). In order to store the hash as varchar, you need to ensure its size is sufficient. According to your comment, you use varchar(50), which is not enough, and that's the reason that changing its size fixed your problem.




您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:qq群:49734243 Email:zukeqiang@gmail.com

1488

主题

12949

帖子

55

粉丝
快速回复 在线客服 返回列表 返回顶部