Search code examples
androidone-time-password

Android one time password (OTP) user registration/opening account


I want to implement OTP functionality in my android application. In this application, after signup user will receive one time password key. After verifying OTP, user will be able to register/open account successfully by using that OTP. What i need to do achieve this?


Solution

  • Check google authenticator. https://code.google.com/p/google-authenticator/ it is open source project with OTP functionality

    Source code for android app https://code.google.com/p/google-authenticator/source/browse/?repo=android

    Here is source code for server side https://github.com/chregu/GoogleAuthenticator.php

    Wikipedia article http://en.wikipedia.org/wiki/Time-based_One-time_Password_Algorithm