[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 969
  • Last Modified:

How to Protect Password/Username on ServerSide ASP.Net

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
badrhino
Asked:
badrhino
2 Solutions
 
Rahul AgarwalTeam LeaderCommented:
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
 
Anurag AgarwalCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now