What is an OTP number in a login authentication system? Is there any specific algorithm for generating OTP numbers using java (android). Or is an OTP something like random number? How can this be achieved, with optimization.
![For For](/uploads/1/2/6/2/126261824/484635710.png)
Android DeveloperAndroid Developer
Sep 10, 2017 Indian disposable phone numbers. Yes, i am showing you Indian disposable phone numbers for Verify/bypass otp codes in many sites in India. This is an site for throwaway, disposable phone numbers. If you visited a site but it wants otp verification but you don't want to share your number due to some privacy reasons then don't worry, There i am presenting Indian disposable phone. Features of These Indian disposable phone numbers. Instant Otp Code; Totally Free Of Cost; No Registration Required. And Much More Example Number - +9198723. How To Get Indian disposable phone number online. If you want Indian disposable phone numbers, then you must be little upset.
8 Answers
Please do not reinvent the wheel - especially in case of security and cryptography. You might end up in a really bad state.
Use algorithms, that the community agreed upon like the HOTP and TOTP algorithm specified by the Open Authentication Iniative.These algorithms are also used by the google authenticater and specified in these RFCs. Read them. They are simple.
cornelinuxcornelinux
Check google authenticator. : https://github.com/google/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
Rajan BhavsarRajan Bhavsar
I have the same difficult to find simple rule about it.
There are a lot of content explaning about OTP like 'Time Syncronized' etc... , however I was looking for a simple solution, however, keeping the system's security .
I'm my case I keep the 2FA (Two Factor Authentication), that already gives a lot of security.
A relevant info about JAVA for random generator ( see: SecureRandom )Important if you want a unique number generation, avoiding repeats.
Examples:
Details about it:http://resources.infosecinstitute.com/random-number-generation-java/
Based on examples above i implemented the following snippet:
Eduardo FabricioEduardo Fabricio
Aditya VatsAditya Vats
Zoha IrshadZoha Irshad
Shivam RajputShivam Rajput
RAHUL KUMAR SINGHARAHUL KUMAR SINGHA
Vivek PancholiVivek Pancholi