Check out CAPICOM.dll. If you need some examples of use let me know. As long as the languages that you are using can do COM (the list of languages you give can certainly do) and you are running on a Windows OS (98SE or greater), you should have no problem getting what you need and being able to do it consistently regardless of the language. CAPICOM is freely available from Microsoft.
>>>>Yes with EncryptSessionStreamFile() VFP7 encrypted file is not the same as the ones produced in 8 and 9.
>>>>In API declarations change SHORT to INTEGER (for VFP7). Under VFP7 with SHORT it was treating bool Final parameter as .T.
>>>
>>>Cetin,
>>>
>>>Great catch! I wouldn't have thought of it in a million years.
>>
>>I couldn't believe it to be the reason either. If my inet weren't terribly bad yesterday I'd pass this separately to you thinking your VFP-.Net code might be related to this. Glad you saw it.
>
>Cetin,
>
>Unbelievable. Thanks for the reply.
>
>I don't think that this is related because it doesn't involve a file stream, but a memory stream. I doesn't sound too hard, but I keep getting nothing.
>
>For any lurkers, here's the problem...I'm trying to implement, with a public key, encryption for passwords. I've been able to do this, but not using the same encryption methods between .NET (C#), VFP, and (ugh) Powerbuilder 6.5. IOW, the same encrypted same must be able to be decrypted in any of the above.