GoogleAuth是一个Java服务端开发包,实现了 Time-basedOe-timePassword (TOTP)算法 RFC6238.
该项目参考 GoogleAutheticator,后者是一个C的开源项目。
Mave:
<depedecy><groupId>com.warrestrage</groupId><artifactId>googleauth</artifactId><versio>1.1.2</versio></depedecy>示例代码:
GoogleAutheticatorgAuth=ewGoogleAutheticator();fialGoogleAutheticatorKeykey=gAuth.createCredetials();







评论