Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help on Table Encryption

Status
Not open for further replies.

Const

Programmer
Jun 4, 2002
6
CA
Hi,
I found on Internet a little class (cryptoApi) which I adapt to encrypt and decrypt a table located in a database. I develop on WIN2000 and it is still working. But on my other computer which is running under WIN XP, it doesn't work. Does anyone know why?

Thanks

Const
 
Const

In what way does it not work? It doesn't encrypt or it causes an error?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Const,
I found this explanation and fix on the UniversalThread ( by Sergey Berezniker:

"... the problem is that the default Crypto Provider is different for Windows 2000 and XP. It is Microsoft Base Cryptographic Provider (Rsabase.dll) for Windows 2000 and Microsoft Enhanced Cryptographic Provider (Rsaenh.dll) for Windows XP.

To fix it, try to set 'cprovidername' property of the _cryptapi class to "Microsoft Base Cryptographic Provider v1.0" which is value of dsMS_DEF_PROV_A constant in the wincrypt.h include file. "

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top