Lately, I was migrating an application from .NET 1.1 to .NET
2.0. The login passwords were already hashed and stored in a Microsoft SQL 2000
database in ntext format. On user login, the application hashes the provided
user password and compares it to the stored password hash in the database. All
logins failed in .NET 2.0 and I had to find out what was going wrong. I spent
some time working and luckily I came to a solution.