https://github.com/fusionauth/fusionauth-2fa
Two Factor Helper for RFC4226 HMAC-Based One-Time Password Algorithm
https://github.com/fusionauth/fusionauth-2fa
Last synced: 9 months ago
JSON representation
Two Factor Helper for RFC4226 HMAC-Based One-Time Password Algorithm
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-2fa
- Owner: FusionAuth
- License: apache-2.0
- Created: 2015-07-31T20:31:58.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:31:37.000Z (almost 2 years ago)
- Last Synced: 2025-09-30T19:54:19.218Z (9 months ago)
- Language: JavaScript
- Homepage: https://fusionauth.io
- Size: 331 KB
- Stars: 7
- Watchers: 15
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
## FusionAuth Two Factor 
This project is a helper for anyone building their own OTP implementation. This project contains a web based tester, and a Java class with some helpful methods.
### Using the Java Helper
The Java helper can be found in `src/main/java/io/fusionauth/twofactor/TwoFactor.java`.
### Web based testing
To use the web based OTP generator with QRCode options, open the `web/html/example.html` file in your browser.
The following is an example screenshot. This tool can be useful for testing.

### Building in Savant
**Note:** This project uses the Savant build tool. To compile using using Savant, follow these instructions:
```bash
$ mkdir ~/savant
$ cd ~/savant
$ wget http://savant.inversoft.org/org/savantbuild/savant-core/1.0.0/savant-1.0.0.tar.gz
$ tar xvfz savant-1.0.0.tar.gz
$ ln -s ./savant-1.0.0 current
$ export PATH=$PATH:~/savant/current/bin/
```
Then, perform an integration build of the project by running:
```bash
$ sb int
```
For more information, checkout [savantbuild.org](http://savantbuild.org/).