Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 9th, 2006, 05:05 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sql server decryption problem

Hi

can anybody tell me how to do reverse process of encryption?

i have one dout that after encryption,if user forget his/her password hot to do reverse process means how to convert in text formate?

can u help me for my this help?

Thanks
monika

 
Old December 9th, 2006, 07:29 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello Monika
hey you are to write a function in code behind to decrypt the password before assigning it to user.
if a user forget his/her password no problem but your DB have that when u want to show it to user then first decrypt it. e.g u want to show password to user in text box then use
txtpassword=classname.functiondecryp(dbfieldname)
Simple
Now Smile

thanks......
 
Old December 9th, 2006, 07:38 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

The standard approach is to reset their password to a random string and email it to them and then force them to change it at next login. This way you don't need to compromise security by having admin able to decrypt.

--

Joe (Microsoft MVP - XML)
 
Old December 14th, 2006, 03:12 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Go with Joe's suggestion on this or you risk accidentally giving out users passwords!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
decryption problem musman0047 .NET Framework 2.0 0 May 8th, 2008 08:22 PM
Sql Server Problem monika.vasvani SQL Server 2000 2 December 14th, 2006 03:09 PM
Encryption/Decryption Problem param99 SQL Server 2000 4 December 14th, 2006 05:20 AM
SQL Server 2005 Encryption and Decryption hykyit SQL Server 2005 2 September 24th, 2006 08:33 PM
SQL Server Problem! Jane SQL Server 2000 1 October 12th, 2004 08:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.