0
如何在bash命令行中为spring security 3x中的用户生成salted hash?Spring安全为用户从命令行生成一个salted hash
如何在bash命令行中为spring security 3x中的用户生成salted hash?Spring安全为用户从命令行生成一个salted hash
弹簧安全合并在格式密码{盐},而不是密码+盐的简单级联的密码和盐,从终端输入:
echo -n password{salt} | shasum -a 1
请注意:弹簧安全建议使用编码方法上的PasswordEncoder
如果你想生成编码密码直接在Java中以存储在您的用户数据库,那么你可以使用编码方法上的PasswordEncoder