How To Generate A Simple Registration Code,based On Input Given By The User And Verifying It After Installation
Suppose, I have created an android mobile application. What I am looking for is, once the user purchases my application from my website, he will input his IMEI number. I want to ge
Solution 1:
Depending on what you are going to be developing your site in, you may want to take a look into GUID
's or something of that sort...Read more Here
Solution 2:
What you can do is once you have received the IMEI from the user you can apply an algorithm on it (you can, for example, shuffle the string and add some salt on it) and them generate a hash of it.
Send this hash
do the user and when he/she types this hash
on you app you will fetch the IMEI , apply the same algorithm and calculate the hash
. If the hash
matches the one you sent them your app will be activated.
I would use Sha256, but you can also use any other hash function you like.
You can also apply a Base64 algorithm to the hash to make it easier to type.
Post a Comment for "How To Generate A Simple Registration Code,based On Input Given By The User And Verifying It After Installation"