Welcome Guest, Not a member yet? Register   Sign In
Generate code without guess
#2

If you need simple one off codes that dont need to have a specific value I would use a simple hash system.

For example creatinge the hash I would use todays data and exact time and hash that. For example MD5 would alway generate a 32 charatcer long code. This can be easily created in PHP and stored in the database.

The app would then just check for this code. The app does not need to know the date time as it just checkst if it exist in the DB.

The problem with this approch is the length of the code. If a user has to enter that manually then 32 char is rather long.

I hope this helps and give syou some ideas.
On the package it said needs Windows 7 or better. So I installed Linux.
Reply


Messages In This Thread
Generate code without guess - by omid_student - 09-29-2017, 05:27 AM
RE: Generate code without guess - by rtenny - 09-29-2017, 07:05 AM
RE: Generate code without guess - by omid_student - 09-29-2017, 01:06 PM
RE: Generate code without guess - by PaulD - 09-29-2017, 10:43 AM
RE: Generate code without guess - by Paradinight - 09-29-2017, 11:55 AM
RE: Generate code without guess - by omid_student - 09-29-2017, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB