TOTP Service is a JAVA library as solution to TOTP authentication.
This is a Maven Project on JDK11.
This is a Library and does not run standalone.
Please check this project for implementation
mvn install
For implementation, this check TOTPDemoApp which can be found in TOTPDemoApp
I have included a interactive test in TotpTest.java, run by main();
it will generate a QRCode as PNG under src\main\resources\qrimage\testQR.png
Use Microsoft / Google Authenticator app on your phone (iOS/Andriod) to scan QRCode.
Type in the passcode from the app to your cmd/terminal to verify.