As I was surfing through StackOverflow today, I noticed a question that got me thinking. This developer had been working with a classic ASP application that used MySQL for it’s backend database. The project on his plate was to convert this application to ASP.NET with MS-SQL as the database. The only problem he encountered was the fact that passwords were stored in the database using a MySQL-specific hashing algorithm called via the PASSWORD() function. He needed a way to convert these passwords to .NET.
Given that I have a MySQL database laying around, I decided to poke around in the source code to see exactly how MySQL’s PASSWORD() function really works. It didn’t take me long to find inside the file “libmysql/password.c” this little gem:
Hi! My name is Scott. Welcome to my place on the web. I currently work in St. Louis, Missouri as an ASP.NET developer, although I tend to use whatever language tickles my fancy at the moment.