Solved

How to Protect Password/Username on ServerSide ASP.Net

Posted on 2011-02-16
2
957 Views
Last Modified: 2012-06-27
I'm making a smiple web page using asp.net and vb.net (server side code) where users can ftp text files to the server.   My ftp server requires authentication.  How do I protect my password and username?  Can I just hard code them into my function statments?   What is the best practice for this.

Thanks in advance!
0
Comment
Question by:badrhino
2 Comments
 
LVL 13

Assisted Solution

by:agarwalrahul
agarwalrahul earned 250 total points
ID: 34913146
best practice is to store the username and password in database and retrieve it only at the time of authentication required by the ftp server to load file.
0
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 250 total points
ID: 34914974
badrhino do one more thing just encrypt the passwords and keep it in database, the best practice would be suggested tht u use technique like MD5 for authentication. just google it a litle and fr ur help here are some links....
1. http://www.aspnettutorials.com/tutorials/advanced/md5-secret-aspnet2-csharp.aspx
2. http://www.codeproject.com/tips/70420/MD5-in-ASP-NET.aspx
 
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video teaches users how to migrate an existing Wordpress website to a new domain.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now