By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,594 Members | 3,552 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,594 IT Pros & Developers. It's quick & easy.

encrypt password in config file

P: n/a
Hello All:

I want to encrypt a username/password inside a config file that will be read
and decrypted by a .dll. I have discovered many ways to do this looking at
Google but was wondering if anyone could recomend one method over another.
Any thoughts?
Jul 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

DPAPI might be a good idea.

MSDN lists different options available in the section hosting the DPAPI How
To:
http://msdn.microsoft.com/library/de...SecNetHT07.asp

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/

"CLEAR-RCIC" wrote:
Hello All:

I want to encrypt a username/password inside a config file that will be read
and decrypted by a .dll. I have discovered many ways to do this looking at
Google but was wondering if anyone could recomend one method over another.
Any thoughts?

Jul 21 '05 #2

P: n/a
Thanks. I'll try it.

"CLEAR-RCIC" wrote:
Hello All:

I want to encrypt a username/password inside a config file that will be read
and decrypted by a .dll. I have discovered many ways to do this looking at
Google but was wondering if anyone could recomend one method over another.
Any thoughts?

Jul 21 '05 #3

P: n/a
On Wed, 8 Jun 2005 11:05:01 -0700, "CLEAR-RCIC"
<CL*******@discussions.microsoft.com> wrote:
Hello All:

I want to encrypt a username/password inside a config file that will be read
and decrypted by a .dll. I have discovered many ways to do this looking at
Google but was wondering if anyone could recomend one method over another.
Any thoughts?


No actual need to decrypt. If you encrypt the password that the user
enters then you just have to check that the two encrypted versions
match. Depending on how secure you want things to be you could even
use a one-way encryption that cannot be decoded.

rossum

The ultimate truth is that there is no ultimate truth
Jul 21 '05 #4

P: n/a
Alright. Thanks for the clarification.

"rossum" wrote:
On Wed, 8 Jun 2005 11:05:01 -0700, "CLEAR-RCIC"
<CL*******@discussions.microsoft.com> wrote:
Hello All:

I want to encrypt a username/password inside a config file that will be read
and decrypted by a .dll. I have discovered many ways to do this looking at
Google but was wondering if anyone could recomend one method over another.
Any thoughts?


No actual need to decrypt. If you encrypt the password that the user
enters then you just have to check that the two encrypted versions
match. Depending on how secure you want things to be you could even
use a one-way encryption that cannot be decoded.

rossum

The ultimate truth is that there is no ultimate truth

Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.