471,339 Members | 1,268 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,339 software developers and data experts.

encrypt password in config file

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
4 1836
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
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
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
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.

Similar topics

1 post views Thread by Anand | last post: by
7 posts views Thread by Jean Christophe Avard | last post: by
4 posts views Thread by CLEAR-RCIC | last post: by
4 posts views Thread by Tom | last post: by
6 posts views Thread by Aneesh P | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.