473,233 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 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 1942
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wqhdebian | last post by:
As far as I know,when encrypt or decrypt ,a key must first be got,and the key is first generate by a tool or from SecurityRandom,that means I can not generate the same key with the same input.Does...
1
by: Anand | last post by:
Hi, I want to encrypt userid and password on the web config file. I ran the aspnet_setreg.exe and encrypted it on the registry and in the web config file i wrote <identity impersonate =...
3
by: Henry | last post by:
Hi, my asp.net application is accessing a mssql on another server. This works fine when I use this in my web.config file: <add key="dbkey"...
3
by: Alex Nitulescu | last post by:
Hi. I am writing an app which stores usernames/passwords and email addresses in a database table. The question is how can I encrypt the password provided by the user ? ...
7
by: Jean Christophe Avard | last post by:
Hi! I am designing an application wich comes with image file. These images are copyrighted and they have to be accessible only from within the application. At first, I tought I was going to store...
4
by: CLEAR-RCIC | last post by:
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...
4
by: google | last post by:
OK, I know how to encrypt and decrypt data, but here's the deal: I have a large Winforms .NET 2.0 application which is currently storing the connection string in the app.config file unencrypted...
4
by: Tom | last post by:
Is it possible to encrypt a value in the my.settings area in VB.NET 2005? I.E. Can I add a settings value (via My Project / Settings) and have it encrypt that value so that if anyone looks at the...
6
by: Aneesh P | last post by:
Hi All, I need to encrypt some fields esp password key values in configuration file while installting the application using .Net installer project and decrypt those values from my...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.