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)
Upgrade Password Hashing From .NET 1.1 to .NET 2.0
If you're having troubles upgrading your ASP.NET 1.1 app to 2.0 because of hashing your passwords "not working",
my long time friend, Joe, figured it out
.
Posted:
Nov 29 2005, 03:07 PM
by
HumanCompiler
| with
4 comment(s)
Filed under:
ASP.NET
,
Tips
Comments
Jason Mauss
said:
I've always used that method "HashPasswordForStoringInConfigFile" to hash stuff (after adding a salt of course). It doesn't get much easier than that.
#
November 29, 2005 6:52 PM
Erik Porter
said:
So have I, but isn't that doing the same thing he was doing?
Personally I always specify the encryption key in my application so it's not an issue.
#
November 29, 2005 6:55 PM
Jason Mauss
said:
"isn't that doing the same thing he was doing?"
Unless I misunderstood that thread - his problem stemmed from using ASCII encoding instead of Base64. If you open Reflector on the System.Web.Security.HashPasswordForStoringInConfigFile method you'll see that, even though it uses UTF-8 encoding for the byte array initially, it returns a hex string from the byte array, rather than a UTF-8 or ASCII encoded string.
Not that his eventual solution doesn't work or isn't "right" - it's just that, as I think one guy in that thread pointed out, it's much easier to use the built in method that System.Web.Security holds.
And yes, this reply is this long because I'm bored at work and need some intellectual stimulation. :-p
#
November 29, 2005 7:34 PM
Erik Porter
said:
Gotchya. I'd never opened it up in Reflector...cool!
#
November 29, 2005 7:36 PM