A function for MySQL which verifies Mobile One Time Passwords and remeber them to make them only valid for one time.
1. Create table otp_history like shown in mysql-motp.func.
2. Paste text from mysql-motp.func into your mysql-session
3. You are ready to start.
The function otpverify returns a bool value, so:
1 := True (is valid)
0 := False (wrong)
mysql> select otpverify('1234','624d4f','0123456789abcdef') as result\G
result: 1
mysql> select otpverify('1234','624d4f','0123456789abcdef') as result\G
result: 0
Features
- motp
- mysql
Follow mysql-motp
nel_h2
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of mysql-motp!