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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What DLL is in use in _crypt.vcx ?

Status
Not open for further replies.

Goofus828

Programmer
Nov 9, 2005
127
US
We have 1 client that cannot get passed our password/decrypt routine. The other 40 clients can.

This client is using our VFP9 software on a virtual machine( win 7 ).

We are using the FFC\_crypt.vcx class that was loaded with VFP9.

Here is a snippet of that code in the _crypt class.
Code:
Declare INTEGER CryptDeriveKey ;
	IN WIN32API AS CryptDeriveKey ;
	INTEGER hProviderHandle, ;
	INTEGER nALG_ID, ;
	INTEGER hBaseDataHandle, ;
	INTEGER nFlags, ;
	INTEGER @hCryptKeyHandle

I would like to know where the WIN32API file is, or is it embedded in another DLL such as Kernal32.dll or gdi32.dll etc, etc.

I will use this information to determine if the virtual machine is missing something.

Thanks.
 
WIN32API is a keyword for a whole bunch of system core DLLs, see the help file:

VFP9 help on DECLARE DLL said:
If you specify WIN32API for the LibraryName, Visual FoxPro searches for the 32-bit Windows .dll function in Kernel32.dll, Gdi32.dll, User32.dll, Mpr.dll, and Advapi32.dll.

Searching the MSDN you find this function is part of the Advapi32.dll

Known problems with encryption are export restrictions on cryptography providers, and the irony is we have a problem with defaults due to the relaxing of US export restrictions. Microsoft changed the default RSA algorithm from 40Bits to 128Bits. This way, unless you take action, an encryption done in one OS (say WinXP) does not decrypt properly in another OS (eg Windows 2000).


Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top