>I've read a few threads about this, but it never became very clear to me.
>
>I'm searching for a way to safely encrypt and decrypt strings. I know of the _CryptApi.vcx, but I understand that there might be problems with OS specific settings on how the strings are encrypted and decryted.
>
>1. The encryption must work exactly the same on all OSs from W98 and up.
>2. The encryption must be provided either with pure VFP code or general Windows API. Because of security issues, we don't want to use custom dlls.
>
>Can anyone shed a light on this. With an example maybe ??
>
>Walter,
Walter,
>1. The encryption must work exactly the same on all OSs from W98 and up.
The only thing I seem to remember is that you have to force the MS_DEF_PROV ("Microsoft Base Cryptographic Provider v1.0") rather than MS_ENHANCED_PROV ("Microsoft Enhanced Cryptographic Provider ") when you use the api CryptAcquireContext(). Someone else can confirm this ?
>2. The encryption must be provided either with pure VFP code or general Windows API. Because of security issues, we don't want to use custom dlls.
I can provide you with a working RC4 in pure vfp code should you be after that.
Gregory