Call some "Encrption" method inside win32 DLL from VB.Net
$30-250 USD
Concluído
Publicado há aproximadamente 13 anos
$30-250 USD
Pago na entrega
- We have a 3rd party win32 DLL
- DLL contains an ENCRYPT function
- ENCRYPT takes 2 input parameters and 1 output parameter
- 2 input parameters: password to encrypt, seed to use for encryption
- 1 out parameter: encrypted password
- Sample Seed (8 bytes Hex representation): 4C6C6004B6403C08
- Sample Password (8 bytes Hex representation): 0000000000000000
- Sample Encrypted Password (Desired output, 8 bytes hex representation): B41060941A8A96CE
We need sample VB.Net code, that uses this DLL, calls ENCRYPT metod using 2-3 sets of password and seed parameters we will provide and is able to return corresponding encrypted passwords. We will also provide corresponding encrypted passwords that should be obtained for verification of success.
Original instructions regarding the use of this DLL and ENCRYPT method are provided below:
32-Bit Version of the Encryption DLL & Extra Information on How to use it
1) The [login to view URL] file used to statically link in with the DLL, otherwise the DLL can be loaded using LoadLibrary().
2) The [login to view URL] file contains the encryption code.
3) The ENCRYPTDLL.H file also supplied is a C/C++ header file for the library.
The prototype for the function is as follows:
int pascal Encrypt(const char* Password, const char* Seed, char* EncryptedPassword);
Each of the parameters must adhere to the following
Password is a pointer to the password as entered by the user (must be 8 ASCII characters).
Seed is a pointer to the seed returned by the meter (16 characters in the set {'0' - '9', 'A' - 'F'}).
EncryptedPassword is the output result of the encryption in the correct form for sending to the meter (16 characters in the set {'0' - '9', 'A' - 'F'} + terminating NULL character). This should be a pointer to a 17 character buffer.
Note: that it is not necessary for the input values to be NULL terminated, and the output value (EncryptedPassword) will always be NULL terminated.
The return value is TRUE (non-zero) on success and zero on failure, although in this version all variations of password and seed are valid input, therefore the function will always return TRUE.