Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_crypt between vfp7, vfp8, and vfp9
Message
From
25/10/2005 09:08:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01061732
Message ID:
01061837
Views:
13
>I am trying to determine what could have changed between VFP7 and VFP8/9.
>
>When encrypting a file using _crypt.encryptsessionstreamfile() in each version, if the file was < 1024 bytes in length all three were the same.
>
>If the file was > 1024, VFP7 was different than VFP8/9. The VFP8/9 files were exactly the same.
>
>I used a ZIP CRC function to check the ciphered contents.
>
>VFP8 and VFP9 clients can interchange files but VFP7 clients on older machines cannot if the file size is > 1024.
>
>I used a UNIX diff command to compare the VCX code and did not find any differences.
>
>I used a UNIX diff command on the wincrypt.h and foxpro.h and I did not see anything that would affect the crypt lib.
>
>VCX's are coded to the "Microsoft Base Cryptographic Provider v1.0". I started to try others in the registry but "Enhanced" and "Strong" appeared to have the same results and they have the same DLL. Stopped short on this road...
>
>I think I have extraced the following list of VFP functions used:
>alltrim
>bitand
>bitlshift
>bitrshift
>bitxor
>empty
>fclose
>feof
>file
>fread
>fseek
>fwrite
>left
>len
>mod
>space
>
>I am trying to determine if any of these changed from VFP7 to VFP8. I looked in "Behavior Changes Since Visual FoxPro 7.0" to see if anything above would have changed to influence the classes but I have not found anything.
>
>Could the problem be with a change in the base VFP command from VFP7 to VFP8? Does this sound right?
>
>Thanks in advance.
>--rab

Raymond,
I don't know what has changed but can confirm the change. VFP7 doesn't yield the same encrypted file as 8 and 9 do.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform