Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a consitent number based on a random
Message
 
 
À
10/09/2004 12:49:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00941102
Message ID:
00941134
Vues:
30
Thank you for your helpful input.

>I am not an expert on this, but let me try if I can help.
>
>The random number or string should not be too difficult to obtain.
>
>For the calculation of the "activation key" It could be something as simple as a CRC. Another possibility would be MD5.
>
>However, there is problem is that it should be difficult to guess how the activation key was obtained.
>
>I would suggest that to the original code which is visible to the user, you add some additional information and THEN apply CRC or MD5. That way, if the user calculates an MD5 on his original string, he will not obtain the activation key, making it very difficult to guess how the information was obtained.
>
>The data you add should be a more or less random-seeming string of characters.
>
>>I want to create an activation screen that would work as following:
>>
>>1. End user is given a random number or string.
>>2. End user has to call the company to obtain 'activation' code.
>>3. The application check that the 'activation' code is valid.
>>
>>That is, the application and another program (VFP) should be able to return exactly the same string or number based on the input number or string.
>>
>>Any suggestions for the above logic?
>>
>>Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform