Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need hash algorithm
Message
 
 
To
23/06/2005 19:12:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01025332
Message ID:
01026139
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform