-1

I am using Android Studio 1.22 and JRE 1.8 with 64 bit JVM. How to import Crypto,js to Android?

I want to calculate 6 digit OTP from HMAC output.

Amruth
  • 77
  • 2
  • 7

2 Answers2

0

Have you checked this from Google code : Google Authenticator

You can find step-by-step JAVA sample code in there.

Cheers.

Tu-Jen Liang
  • 123
  • 2
  • 7
0

You can find implementation in java here :

https://github.com/romus/sha/blob/master/sha3/src/com/theromus/example/Main.java

pratik deshai
  • 2,770
  • 2
  • 11
  • 13