Link to home
Start Free TrialLog in
Avatar of Parth48
Parth48Flag for India

asked on

I want to encrypt aspx page through web.config file , but how can i do it ?

Hello Sir,

I want to encrypt aspx page through web.config file. When i open that particular page then it will prompt for username and password. Suppose i have 5 pages in my Asp.net web application.

For Ex.

temp.aspx
temp1.aspx
temp2.aspx
temp3.aspx
temp4.aspx

Now i want to encrypt temp3.aspx through web.config file, when i open webpage temp3.aspx then it will prompt for username and password,

How can i do it in Web.config?
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Hi

Walkthrough: Encrypting Configuration Information Using Protected Configuration

http://msdn.microsoft.com/en-us/library/dtkwfdky(v=vs.100).aspx
Do you mean 'encrypt' or 'protect'?  Even if you do both, the information sent to the browser will be in plain text unless you purchase and install an SSL certificate to encrypt the connection.
Avatar of Parth48

ASKER

@DaveBaldwin : Protect that aspx page, when i open that aspx page it will prompt for username and password.
Avatar of Parth48

ASKER

@DaveBaldwin : how can i do it in Web.config ? When i open aspx page on server then it will ask for username and password [e.g. Popup]. It relate to form authentication in web.config

Username and password must be stored in web.config.

No coding in C# , only setting in Web.config
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Parth48

ASKER

@DaveBaldwin : which code i should include for individual file protection ?
Please read the articles that have been posted.
Avatar of Parth48

ASKER

Thank You