How to OTP is generated ?

Today i am going demonstrate how O.T.P generator work using java programming language.


For reference you can open this code this code.

                                                    O.T.P. Generator


O.T.P stands for one time password. otp is used to carry out transaction in secure way.



In this code we give the compiler a limit of choosing from limited Number randomly.By  using an built in library function called Scanner, which called by importing the file using the command "import java.util.scanner".And calling it in code as an object.

For loop while be executed 4 times and during this time compiler will pick four random number.This 4 random number is the otp number which will be show in output.

I have  commented in some of the line (what they do) in the code .
If you have can Query feel free to comment in blog.I will be grateful to answer your doubt.

If you like this blog. Don't forget to subscribe the blog for more content.

Thanks for reading our blog.

  

Comments

Popular posts from this blog

New Iphone launched

What is Git?

Asus ROG 2