Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPEncryption question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01136407
Message ID:
01137803
Views:
23
>You'd need to check that the right key was used. If a way to tell whether the correct key was used was added to the library this would decrease the overall security of the library by making it succeptible to brute force attacks among other things (the library would have to embed the key in the ciphertext so it could check it and this would not be a good thing). If you don't know what the right key should be or what the resultant plaintext should be when decrypting the ciphertext then there is no way to know whether the key used is the right one.
>
>Perhaps you could explain a little more about what you are trying to do and why not having the ability to know whether the correct key was used is causing you a problem (or why you feel that such a feature would be useful to you)?
>


Thanks for the reply!

Suppose I have an application to distribute to users. The application requires a license to be activated on it's initial run. The user may download the software upon purchase and they will receive an email attached the license encrypted by a key generated uniquely for the customer. Of course, it wouldn't be wise or logical to store that key within the application. Therefore if there were a way to know that the decrytion failed with the key provided, certain measures may be taken in such an event. In this scenario, I could warn the user that the key provided is incorrect. I was expecting an error, exception or for Decrypt function to return .f. if not decrypted correctly because CryptDecrypt function in AdvAPI32.DLL returns zero (FALSE) and sets last error.
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform