摘要: Google Authenticator 的原理是服务器随机生成一个密钥并保存并告知客户端。用户需要登陆时客户端根据密钥和时间戳通过一种算法生成一个6位数字的密码。本文使用 java.util.zip.CRC32 模仿 Google Authenticator 实现此功能。 /** * 生成验证码 阅读全文
posted @ 2021-05-28 10:55 VictorBu 阅读(600) 评论(0) 推荐(0) 编辑