473,503 Members | 2,105 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

encrypt password

Hi All,
Does anyone know how to encrypt the password before store in the sql database?
In addition, decrypt the password from database before comparison.

The purpose to do it because to hide the human readable password although
the user open the sqlserver database.

Any ideas? Any better suggestion? any guidelines?
Thank you in advance.

Best regards,
Ocurnos
Nov 19 '05 #1
2 2655
Ocurnos,

The common approach is to hash passwords one way. You can't decrypt it.
Rather you hash the user entry with the same algorythm and compare the
hashed values. Look in

How To: Use Forms Authentication with SQL Server 2000
http://msdn.microsoft.com/library/de...SecNetHT03.asp

Eliyahu

"Daniel" <Da****@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
Hi All,
Does anyone know how to encrypt the password before store in the sql database? In addition, decrypt the password from database before comparison.

The purpose to do it because to hide the human readable password although
the user open the sqlserver database.

Any ideas? Any better suggestion? any guidelines?
Thank you in advance.

Best regards,
Ocurnos

Nov 19 '05 #2
you can use System.Security.Cryptography classes to encript the password and
then store it in the database.
for more info: http://www.codeproject.com/aspnet/encrypt.asp

Cheers,

Dhanushka Nuwan
sh******@yahoo.com
"Daniel" <Da****@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
Hi All,
Does anyone know how to encrypt the password before store in the sql database? In addition, decrypt the password from database before comparison.

The purpose to do it because to hide the human readable password although
the user open the sqlserver database.

Any ideas? Any better suggestion? any guidelines?
Thank you in advance.

Best regards,
Ocurnos

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7938
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...
0
2007
by: Alan Murrell | last post by:
Hello, I am setting up a Postfix + MySQL + Courier-IMAP system. I am trying to write a shell script which will insert the values into the database. For the password encryption, I wish to use...
2
10369
by: Anilza Popat | last post by:
I would like to know how to encrypt and decrypt files using c#. I want a program that asks for password before encrypt or decrypt the file. best regards
3
2444
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
7809
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...
8
4258
by: toupeira23 | last post by:
Hello, I'm trying to encrypt passwords in my app. After discovering that there's no simple function to do this, I wrote a wrapper class which decodes a string using UTF8, encrypts it with...
4
10808
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
11941
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...
4
2769
by: Gilles Ganault | last post by:
Hello I'd like to encrypt a customer's organization name to use this as their password to launch our application, and decrypt it within our VB5 application. We will then use this information...
0
7204
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7342
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7464
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5586
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5018
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
741
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.