Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

encrypting HTML, ASP, VBScript files

Status
Not open for further replies.

arnie1980

Programmer
Mar 1, 2004
5
GB
I have a series of applications i have develped using HTML, ASP and client side vbscript and javascript. I really need a secure and reliable method of encrypting them to protect the functionality of the code.

Could anyone suggest/recommend methods or applications designed to do this. Free or cheap woould be good but since security is an important issue i will consider all possibilities!!

Cheerz,

Kev
 
Kev,

A quick question for you: Do you want to encrypt the code so it will be useless to anyone who steals it from your computer, or are you hoping to prevent the clients that use the code from knowing how it works?
 
I need to encrypt the code so its useless to anyone who may steal it. And i guess preventing clients from knowing how it works would be good too.
 
Consider using the OpenSSL toolkit to encrypt your source code. OpenSSL works on Windows and POSIX, and is available at
Once you have OpenSSL installed, you can encrypt your source code from the command-line:
Code:
openssl aes-128-cbc -e -in [i]<input file>[/i] -out [i]<output file>[/i]

To decrypt your file, replace the switch -e with -d.

This example uses 128-bit AES, using cipher block chaining (CBC). Entering openssl --help will give you a list of the other encryption algorithms supported by OpenSSL.
 
arnie1980:
Under what conditions do you want the code protected?

If you want the code protected from someone's intruding on your server, then using some kind of encryption will be fine.

If you want to protect your source code while using it, that's a different matter. For example, HTML pages must be in cleartext to be used actively on a web server because web browsers don't have the ability to ecrypt the page code before rendering.

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
If you want your VBScript code to be able to be run on a client's machine, but not have the ability to view the source, you might try looking for an ASP compiler.

A quick search on Google turned up: ASP Compiler

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top