Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need hash algorithm
Message
De
22/06/2005 15:43:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
22/06/2005 01:07:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01025332
Message ID:
01025575
Vues:
23
>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

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform