How to calaculate HMAC-SHA3 in Android using Crypto.js?

850 Views Asked by At

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.

2

There are 2 best solutions below

1
On

Have you checked this from Google code : Google Authenticator

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

Cheers.

0
On