CodeBase - PROTECT YOUR PROGRAMS

Return to the CodeBase listing

Category: File Control

Version: 1.0

0
0

Information

Uploaded: 26th Nov 2016 13:17

Modified: 26th Nov 2016 13:49

Author:  -majic-

Summary

Protect your programs from unauthorized access

Full Description

Protect your programs from unauthorized access [ reference source code ]. All you need is the coding and any jumpdrive or other external drive. You have a program you created and want to protect it so only 'you' can open it. Make the very first lines in your program search for the presence of an external file. ie) "if file exist ("file location") = 1 then goto _menu" file location being the external drive where your file is located and the name of the file. ie) e:\access\password.xxx I use a jump drive because it is small and portable, safe in my pocket. You do not need and actual password as the program is only checking for the presence of the file. If the file is there, your program runs. If not found, it gotos _end: and closes the program. On your external drive create a folder called access, then use any text program like Note pad/Word pad , type in a line of characters ( does not matter what - just make it up) ie) s5dfb1sf5b@#$@lkjlk*(&^%n;jlkkjn and save the file to your external drive and give it the name password.xxx saving it to the access folder. Now right click on the file, click on properties and then check on the boxes [1] Read only and [2] Hidden , usually at the bottom of the pop-up window. Now do the same for your folder. This will hide both from view so long as your computer is not set to show hidden folders and files. Even if it is and someone sees and opens the file, all they will see is gibberish. Now your program is protected and will only run if it finds the file on your external drive. I also keep a second jumpdrive set up this way just in case something happens to the first. -majic-

Comments

No comments yet.