>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