Navigation:  Part II - Enhanced Features > Executables (exe file) >

Define password for EXE file

Previous pageReturn to chapter overviewNext page

The protection can be improved significantly by providing a password as a command line parameter. This option should be used if source code is available. If you do not have a source code, you could use an EXE packer to add the password.

 

The application only starts, if the password, provided in the command line, is correct
The password should be at least 30 characters long and should contain numbers, upper and lower case characters e.g.r1nBLCV1rZLZI0YyG7J1BiGNc2cLtZg21pfxm1nv9Jl2f34fs2ajVw31ToTQL1QYt

 

  The password may not contain spaces and the character "

 

When a EXE file is specified as a start file, a new option is visible: Command line parameter for EXE file

 

The Multimedia Player provides the password during runtime when the EXE file is invoked.

 

We recommend splitting the password in different parts and variables of the application to prevent, that a hacker can find out the command line by analyzing the EXE file.

 

 

Sample

 

A very simple method would be to hide the strings in different program parts and make calculations. You can implement more sophistic code like the one below. This is just to outline an idea.

 

x$=”2”

a$=r1nBLCV1rZLZI0YyG7J1BiGNc2cLtZg+str$((val(x$)+1)*7)pfxm1nv9Jl+x$

c$=f34fs+x$+ajVw31ToTQL1QYt

 

commandparameter$=a$+b$+c$

 

.NET offers a SecureString Class. It represents text that should be kept confidential. The text is encrypted for privacy when being used, and deleted from computer memory when no longer needed. For details see: http://msdn2.microsoft.com/en-us/library/system.security.securestring.aspx

 

 


Page url: http://www.helpserver.biz/onlinehelp/lpmme/2.0/generator/help2000/index.html?exe_define_password_for_exe_file.htm