TextBox and Passwords

  • Thread starter Thread starter Gary Coutts
  • Start date Start date
G

Gary Coutts

Hi,

When you set a textbox's TextMode to password, does this just stop the
password being displayed on the client machine or does it send the data to
the server encrypted.


Cheers

gwc
 
No it just means that it renders an HTML input tag of type password instead
of of type text, so it displays *** instead of the text you enter into it.
No encryption takes place.
 
So does that mean that the password data is sent as plaintext back to the
server on a postback.

How do you protected against this data being snooped. As I presume to
encrypt it the data needs to be sent to the server for encryption.
 
Hi,

Gary said:
So does that mean that the password data is sent as plaintext back to the
server on a postback.

Yes, that's correct.
How do you protected against this data being snooped. As I presume to
encrypt it the data needs to be sent to the server for encryption.

That's what SSL (HTTPS) is for.

HTH,
Laurent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top