Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2010, 12:32 PM
Authorized User
 
Join Date: Apr 2009
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to compile or encrypt a .asp file

I have an .asp file in which I have written all my connection strings to database.

I include that file in every page for connection reason. Now Can anyone please help me if I can compile that file or encrypt the file so that user can't see the connection strings into that file when they open it?

Thank you for your help in advance.
 
Old April 9th, 2010, 10:59 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Assuming that your webserver is setup to send .asp files to the asp.dll (and not simply serve then) I would have to ask how a user would even ever see these connection strings?

Next, while it is possible to encrypt your connection strings, it isn't easy and requires you to jump through a series of hoops since this functionality isn't directly available in classic asp. Your choices are:Now in all of the years I have been programming I have never once encrypted my connection strings because I see no need in expending the extra CPU cycles. If someone can compromise your server to the point that they can open your ASP files in notepad and read the connection strings you have bigger problems then said attacker getting to your database.

hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure ASP string encrypt / decrypt resource mat41 Classic ASP Basics 3 September 10th, 2009 02:46 AM
ASP.NET control to encrypt data ? ScottHW ASP.NET 2.0 Basics 2 September 14th, 2007 07:53 AM
why can't i compile this java file? poorguy Java Basics 1 June 11th, 2007 08:03 AM
can't get dll file to compile stevecist ASP.NET 1.0 and 1.1 Basics 3 January 2nd, 2007 01:10 PM
Encrypt ASP CODE Varg_88 Classic ASP Databases 4 September 11th, 2004 09:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.