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: 3 months 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-17T23:28:13.000Z (over 5 years ago)
- Last Synced: 2024-01-15T23:40:37.603Z (5 months ago)
- Language: Java
- Size: 10.7 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - google-totp-java - Google TOTP Java (Java)
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用于检索
* 状态