Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linux-china/google-totp-java
Google TOTP Java
https://github.com/linux-china/google-totp-java
Last synced: 4 days ago
JSON representation
Google TOTP Java
- Host: GitHub
- URL: https://github.com/linux-china/google-totp-java
- Owner: linux-china
- License: apache-2.0
- Created: 2015-06-19T02:43:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T23:28:13.000Z (about 6 years ago)
- Last Synced: 2025-02-15T16:56:30.605Z (6 days ago)
- Language: Java
- Size: 10.7 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
google-totp-java
=======================Google Authenticator for Java
### How to use
* Install "Google Authenticator"" in your iPhone or Android phone
* Generate totp auth urlString authUrl = TOTP.getAuthUrl("youremail","issuere","yoursecret");
* Generate qrbarcode for auth url. You can use https://www.the-qrcode-generator.com/
* Scan qrbarcode with "Google Authenticator"
* Verify the code from "Google Authenticator" during loginboolean result = TOTP.checkCode("yoursecret",codefrominpu);
### Token Repository
Exchange token by Vault### 工作流程
首先生成随机的token,然后提交到中心进行加密后保存,最后通过TOTP获取到这些随机token,进行相关的操作。
### token的基本属性
* 生成时间
* token value
* tags用于检索
* 状态