Question about using SSL with C#.

I haven't ever used SSL before. How does it work from a coding perspective. Suppose I am using Asp.net with C#. If I login to an SSL website, when my  password is posted back to the server, is that value encrypted? If so what would I do to unencrypt the password using C#? Would the username be encrypted as well.
LVL 2
brgdotnetcontractorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Najam UddinCommented:
Well you can use SSL certificate without writing any code!  When using SSL every communication with server is encrypted, you dont have to bother about writing code to decrypt any of message.

Please go through this (IIS Manager part)

Let me know if you need more detail.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brgdotnetcontractorAuthor Commented:
Are you telling me that from the moment you press the "Submit" button (On the login screen when entering the username and password) that the password is encrypted in transit to the server?

Well I suppose that would be good because supposedly it won't be intercepted by a tool like wireshark. So if SSL does not encrypt my password on the server side/C# then how am I suppose to protect my password when it is in memory.
käµfm³d 👽Commented:
What kind of application is this?
Najam UddinCommented:
1. Yes this is the way at very high level how it works.

2.
So if SSL does not encrypt my password on the server side/C# then how am I suppose to protect my password when it is in memory.

SSL protects data till your server, in server you have to code to hash password if you are storing them in db (if this is what you were asking). If you are okay with storing plain password you are good with only SSL, although this is not recommended. Yet what ever you do, at some point in server memory will be your password in plain text.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.