Hello,
I'm looking to create my application as secure as possible. Now I have following line of code:
DirectoryEntry entry = new DirectoryEntry("LDAP://", "domain\username", "password", AuthenticationTypes.Secure | AuthenticationTypes.Sealing | AuthenticationTypes.Signing);As you can see, my password is in plain-text in the code. Now, I presume it's easy to decompile a code using a tool and getting your hands on the password. Since these are my AD Admin-credentials this is not that good.
The AuthenticationTypes are secure, I think. They encrypt the data before sending it to the network.
So there's just the problem of the plain-text password. I've searched for it on Google but can't find the proper solution. I've found alot about encrypting passwords in the web.config. Is this the solution to my problem?
...
Go to the complete details ...