?
Solved

How to Protect Password/Username on ServerSide ASP.Net

Posted on 2011-02-16
2
Medium Priority
?
961 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Assisted Solution

by:Rahul Agarwal
Rahul Agarwal earned 1000 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

771 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