Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 31st, 2003, 11:47 PM
rajk rajk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 20 rajk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Encryption/Decryption Utility in SQL Server 2000

Hi,

I would like to know if SQL Server 2000 has any encryption/decryption utilities that we could use. I have a situation where I need to store the password into a database table. But I want to store this as an encrypted value.

We cannot use any third party encryption tools for this purpose.

Any help is greatly appreciated.

Thanks
Raj

Reply With Quote
  #2  
Old September 1st, 2003, 08:33 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Yes there is a password encrypt function - PWDENCRYPT(). This stores the password as a one-way hash. Use PWDCOMPARE() to compare the users entered data with their stored password.

Reply With Quote
  #3  
Old September 1st, 2003, 12:45 PM
digitallysmooth digitallysmooth is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Posts: 788 digitallysmooth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 34 m 21 sec
Reputation Power: 7
If a user forgets their password, you will need a simple random password generator to reset their password. You would email them the randomly generated password and reset their current password to this generated password which should be run through the PWDENCRYPT() function. Of course you will email it to them in plain text.

I like to set a flag in the user table which enforces a rule forcing the user to HAVE to change thier password before loggin back on.
__________________
__________________________________________________ _
Wil Moore III, MCP | Integrations Specialist | Senior Consultant
Are You Listed...? | DigitallySmooth Inc.

Reply With Quote
  #4  
Old September 4th, 2003, 06:14 AM
rajk rajk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 20 rajk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Encryption feature in sql server 2000

Quote:
Originally posted by stumpy
Yes there is a password encrypt function - PWDENCRYPT(). This stores the password as a one-way hash. Use PWDCOMPARE() to compare the users entered data with their stored password.


Hi Stumpy,
Tried this suggestion but could not find the functions pwdencrypt and pwdcompare in SQL Sever 2000. Which database and version do these functions belong to?

Thanks for your interest in helping. Waiting for your reply.

Thanks
Raj

Reply With Quote
  #5  
Old September 4th, 2003, 09:16 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Encryption/Decryption Utility in SQL Server 2000


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT