Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPEncryption question
Message
 
To
14/07/2006 14:51:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
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:
01136974
Views:
18
>>Craig,
>>
>>Alex Feldstein recommended me to use your VFPEncryption.FLL for encryption/decryption. I download the zip and read the documentation. It works great! However, I do have one question. When I decrypt it with the wrong key, the function doesn't throw any exception or SetLastError, how do I determine whether a wrong key is entered? In other words, how do I know it decrypted correctly?
>
>Just an idea: why don't you also store a known string, and decrypt it? If it doesn't match the expected string, the key is wrong. You could use something that won't change, like your name, or name of the exe.

Dragan,

Thanks for the idea! That's a good one!

Of course, it would be best if Craig could add code that would throw exceptions in such case so it may be handled properly. Has Craig posted the source code any where?
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
Reply
Map
View

Click here to load this message in the networking platform