摘要: 认证为了保证密码的相对安全需要对密码进行加密处理了,加密的方式有很多最常使用MD5加密,加盐 MD5特点:不可逆 public static void main(String[] args) { //md5+salt+hash Md5Hash md5Hash = new Md5Hash("123", 阅读全文
posted @ 2021-08-24 14:37 一杯水M 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 认证 固定数据 Realm @Override protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authenticationToken) throws AuthenticationException { 阅读全文
posted @ 2021-08-24 13:09 一杯水M 阅读(66) 评论(0) 推荐(0) 编辑