Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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 May 11th, 2006, 06:12 AM
Authorized User
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hunzian78@yahoo.com
Default how to create a secure connection string...

hi all....

I got a little tricky problem & i am sure there would be more than one buddies who will be able to sort it out...........

i want to creat a connection string that must consists of user name, password and i don't want any buddy to c my database(access db and password protected) on the isp by anyone ....

please use your iq to understand what i really meant....

thanks in advance.....

Abdul Ghaffar

 
Old May 11th, 2006, 01:11 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

use the web.config to store the connection string.

 
Old May 17th, 2006, 12:40 AM
Authorized User
 
Join Date: Jan 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hunzian78@yahoo.com
Default

Thanks JB....

Well i have to hard code the password and user name for the connection string in web.config also.......this will reaveal my password protected database to the isp's personals.........is there a way to encrypt the user name and password so that no buddy could able to c my database .........

Abdul Ghaffar

 
Old May 18th, 2006, 05:51 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

U can use password encription.
Set PasswordFormat property to MD5 or SHA . Get encripted password from the fuction GetHashCodeForStoringInWebConfigFile(<password to be encripted>,<MD5 or SHA)

Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't pass query string variable on secure server gnilly BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 August 24th, 2005 11:18 AM
Connection String JsonTerre1 BOOK: ASP.NET Website Programming Problem-Design-Solution 5 November 1st, 2004 02:06 AM
secure connection (HTTPS) yoclee BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 12th, 2004 01:11 AM
Secure Socket Connection planeswalk ASP.NET 1.0 and 1.1 Professional 0 July 22nd, 2003 11:04 PM
Secure Socket Connection planeswalk Pro VB.NET 2002/2003 0 July 22nd, 2003 08:24 PM





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