Application Key
Posted: Sat Dec 17, 2016 7:58 am
Hi
Searched the forums for a way to password protect one of my applications not commercial just to put off the casual user.
Found lots of encryption stuff so tried putting it together.
The programme is in two parts.
Part 1 a password encryptor. This takes your password and produces an encrypted string which you use in part 2.
Part 2 is a small password module built into a test application.
You first run the encryptor then copy the output into the source code of part 2.
When you then run the app you are asked for a password if this matches the original the app runs if not it is stopped.
Not great but seems to work. Of course the encryptor can be usd to provide "keys" for other parts of your app as you need to remember that if using a database this will still be in clear text so the database needs to be encrypted.
If anyone needs it i will code a small test database app with encryption.
The first download is a single file which forms Part 1. https://www.dropbox.com/s/b3895tco83mhi ... s.zip?dl=0
The second is the test application and password module. https://www.dropbox.com/s/nw5pitpg57y89 ... y.zip?dl=0
Please post comments etc here.
Regards
cd
Searched the forums for a way to password protect one of my applications not commercial just to put off the casual user.
Found lots of encryption stuff so tried putting it together.
The programme is in two parts.
Part 1 a password encryptor. This takes your password and produces an encrypted string which you use in part 2.
Part 2 is a small password module built into a test application.
You first run the encryptor then copy the output into the source code of part 2.
When you then run the app you are asked for a password if this matches the original the app runs if not it is stopped.
Not great but seems to work. Of course the encryptor can be usd to provide "keys" for other parts of your app as you need to remember that if using a database this will still be in clear text so the database needs to be encrypted.
If anyone needs it i will code a small test database app with encryption.
The first download is a single file which forms Part 1. https://www.dropbox.com/s/b3895tco83mhi ... s.zip?dl=0
The second is the test application and password module. https://www.dropbox.com/s/nw5pitpg57y89 ... y.zip?dl=0
Please post comments etc here.
Regards
cd