Simple lib to create secretkey and get the code with TOTP Algorithm
Include Two-Factor-Authentication-Lib in your project:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.Kyumar</groupId>
<artifactId>Two-Factor-Authentication-Lib</artifactId>
<version>8736e78db4</version>
</dependency>