Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need hash algorithm
Message
From
22/06/2005 15:43:12
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
22/06/2005 01:07:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01025332
Message ID:
01025575
Views:
26
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform