Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need hash algorithm
Message
 
À
23/06/2005 19:12:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01025332
Message ID:
01026139
Vues:
22
Have you looked SYS(2007).

Sys(2017) displays sign on screen in FPW and is used fro chcksum in VFP. So much for the backward compatibility :)

AT

>>>Alex,
>>>
>>>You could use sys( 2017 ) to calculate a 16 bit checksum. I believe this will work in FPW 2.6 on up. To make your checksum more unique, you could add the number of chars in your password to the checksum and/or number of vowels, etc.
>>
>>I was using sys(2017) of the string, plus sys(2017) of some predefined string of mine prepended to that string... something like this:
>>
>>
function ckVal(c)
>>ckVal=sys(2017,c)+"-"+sys(2017, "mystring"+c)
>>return ckval
>
>I did something along those lines since it has to work for FoxPro DOS 2.6 as well as VFP.
>
>Thanks.
>
>Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform