Sign in
|
Join
Search
Erik Porter's Blog
Life and Development at Microsoft and Other Technology Discussions
Home
About
RSS
Atom
Comments RSS
Recent Posts
My Blog Has Moved
Bill Gates: Transitioning into the Future
Life at Microsoft
ASP.NET AJAX BUG: $addHandler Can't Attach to Element Inside an IFrame in Internet Explorer
CES: Bill Gates Leaving Microsoft Video
Tags
.NET
10
Adam Kinney
addHandler
ADO.NET
AJAX
ASP.NET
ASP.NET AJAX
Atlas
Authentication
Bill Gates
Blog
Bug
CES
Channel 10
Channel 8
Channel 9
CodePlex
Community News
Design Concepts
EvNetDev
Facebook
Flash
Flash Remoting
Gadgets
General .NET
General Concepts
General Software Development
IIS
Internet Explorer
JavaScript
Live
Mashup
Media Center
Microsoft
MicrosoftGadgets
MIX
MSR
Orcas
Other
Oxite
PDC
Popfly
Projects
Reflection
Rich Text Editor
Rory Blythe
Scott Guthrie
Silverlight
Slashdot
Smart Devices
Speech
SQL Server
TechFest
TechNet Edge
Tips
Tobin Titus
Vista
Visual Studio
WebServices
Whidbey
Windows Vista
WindowsForms
WindowsServices
WPF
WPFE
XBox
XNA
Yahoo
News
Erik on Twitter
Navigation
Home
Blogs
Archives
February 2009 (1)
June 2008 (1)
February 2008 (1)
January 2008 (2)
December 2007 (4)
November 2007 (3)
May 2007 (2)
April 2007 (1)
March 2007 (8)
February 2007 (2)
January 2007 (2)
December 2006 (2)
November 2006 (3)
October 2006 (2)
September 2006 (4)
August 2006 (1)
July 2006 (5)
June 2006 (2)
May 2006 (3)
April 2006 (2)
March 2006 (6)
February 2006 (3)
January 2006 (5)
December 2005 (7)
November 2005 (8)
October 2005 (13)
September 2005 (5)
August 2005 (9)
July 2005 (11)
May 2005 (2)
April 2005 (13)
March 2005 (3)
February 2005 (2)
January 2005 (3)
December 2004 (4)
November 2004 (5)
October 2004 (7)
September 2004 (2)
August 2004 (3)
July 2004 (11)
June 2004 (12)
May 2004 (5)
April 2004 (14)
March 2004 (9)
February 2004 (3)
December 2003 (4)
November 2003 (21)
September 2003 (3)
August 2003 (18)
July 2003 (24)
June 2003 (11)
May 2003 (13)
April 2003 (11)
Secure Passwords
Well done article
, IMO, on securing passwords in a database table. We've been doing this in all of our applications for a while now and it works great.
Posted:
Feb 18 2004, 08:05 PM
by
HumanCompiler
| with
9 comment(s)
Filed under:
WindowsForms
,
ASP.NET
,
General .NET
,
General Concepts
,
ADO.NET
,
SQL Server
Comments
Jason Mauss
said:
I emailed him asking how you would retrieve the password for a user that forgot their password (so it could be emailed to them or something). It was not mentioned how to do this using the security method. I assume it's doable by using the hash value or something?
#
February 18, 2004 11:50 PM
HumanCompiler
said:
I'm pretty sure it's NOT possible. That's what makes it so secure. Just have them change their password instead of e-mailing it to them or autogenerating a new one and e-mailing it to them. That's what we do...seems more secure.
#
February 18, 2004 11:52 PM
Darrell
said:
Both SHA1 and MD5 are one-way hashes. You have to reset the password to a known value and have the user change the password on next login.
Alternatively you can have a password hint that you show the user to help them remember the original password.
#
February 19, 2004 12:20 AM
Jon Galloway
said:
You can also use T-SQL pwdencrypt() and pwdcompare() -
http://scottcate.mykb.com/Article_46EB8.aspx
and
http://weblogs.asp.net/bdesmond/archive/2003/08/15/24177.aspx
.
It makes for simpler code, but there are some problems with it. The encryption's not that secure (
http://www.theregister.co.uk/content/4/26086.html
) and those functions are undocumented and thus subject to change.
It'd be nice to documented, supported versions of pwdencrypt and pwdcompare in Yukon (other than just saying "you've got the CLR now, write it yourself").
Until then, the technique described in the article looks like the way to go.
#
February 19, 2004 4:10 PM
TrackBack
said:
#
February 20, 2004 3:34 AM
TrackBack
said:
#
February 20, 2004 3:35 AM
TrackBack
said:
Take Outs: The Digital Doggy Bag of Blog Bits for 18th and 19th February 2004
#
February 20, 2004 4:12 AM
Daniel Fisher(lennybacon)
said:
check out
http://www.aspheute.com/artikel/20040105.htm
- it's a german article but the code to generate the salt and the hash are seperated from dataaccess.
Daniel Fisher(lennybacon)
#
February 26, 2004 11:55 AM
Michael Giagnocavo
said:
I don't know why they don't use PasswordDeriveBytes. Also, the article doesn't mention iterations, which are key for increasing the strength against brute force for passwords. A P4 can calculate about 1 million hashes a second, which means a dictionary attack against a hash takes hardly any time.
#
March 18, 2004 8:21 PM