Thanks for the help, but it still does not work on either Win 98 or Win 2K.
I have made sure that all systems are using the "rsaenh.dll"
I'm trying to encrypt/decrypt field data, not files as described in the other posts.
SET CLASSLIB TO _crypt.vcx additive
loSecurity=CREATEOBJECT("_cryptapi")
loSecurity.cProviderName = "Microsoft Base Cryptographic Provider v1.0"
lcRetVal=loSecurity.DecryptSessionStreamString(lcFieldData, lcKey, @lcDecryptedStream)
Any more thoughts ???
Thanks.
>
>Has anyone got this to work for encrypting and decrypting with Windows XP Pro and Windows 98 ???
>>
>>Works great when using all XP workstations, but will not decrypt on Win 98 workstation. The Win 98 has 128 bit encryption turned on.>
>Like Stefan said, make sure you force the same crypto provider.
>Look for "Microsoft Base Cryptographic Provider v1.0" in WinCrypt.h
>and look at the registry entries and make sure both are using the 128-bit provider "rsaenh.dll"
>
>See:
>
Re: Encryption and E-mail Thread #
766405 Message #
766615>
Re: _cryptapi.vcx Thread #
714449 Message #
754980