Here in this article I am going to explain how to generate numeric and alphanumeric OTP (one time password) in MVC application.
I want to generate OTP. OTP can be numeric or alphanumeric and it is used widely to validate the user’s information such as mobile number, in banks for transaction etc.
Add an empty controller to project. Create 3 action to generate OTP, one to generate numeric and 2nd one alphanumeric.