Re: [PHP] Converting C# Hashing Routines to PHP

2007-01-02 Thread Richard Lynch
You can reverse the base64 easily enough. You ain't gonna reverse md5 in this lifetime. The dual-column could work, or you could just accept the password if it matches either routine in a single column. The odds of your new algorithm coincidentally matching the base64(md5()) of another user and

Re: [PHP] Converting C# Hashing Routines to PHP

2007-01-02 Thread Jason Alexander
Thanks Jochem, Yeah, I'm one of those types that wields whatever lightsabre is given to him. ;-) Perfect, thanks for the heads up on how that translates in PHP. Yeah, good idea on the dual column. I was thinking the same thing, and it seems to be the most non-intrusive way to add it into the ne

Re: [PHP] Converting C# Hashing Routines to PHP

2007-01-02 Thread Jochem Maas
Jason Alexander wrote: > Hey there, > > > I'm currently working on converting an ASP.NET, C# site/application to > PHP, and I've run into a small snag. The login algorithm hashes the welcome to the other side, did you get a refund for the red lightsabre? ;-) [go on keep reading, you'll to the u

[PHP] Converting C# Hashing Routines to PHP

2007-01-02 Thread Jason Alexander
Hey there, I'm currently working on converting an ASP.NET, C# site/application to PHP, and I've run into a small snag. The login algorithm hashes the user passwords like so: MD5 md1 = new MD5CryptoServiceProvider(); byte[] buffer1 = new ASCIIEncoding().GetBytes(stringToHash); byte[] buffer2 = m