Archives

Archives / 2005 / July
  • MD5 or SHA1 hashing - the easy way

    This is a typical example of a static method which IMHO is in the wrong namespace.

    If you're looking to use an MD5 or SHA1 hashing algorithm to hash passwords, a lot of people would start looking in the System.Security.Cryptography namespace. But the System.Web.Security namespace offers us the FormsAuthentication.HashPasswordForStoringInConfigFile() static method:

    string pwhash = FormsAuthentication.HashPasswordForStoringInConfigFile(password, "md5");

    The second parameter can be either "md5" or "sha1".

    As far as I'm concerned, simple hashing and enrypt and decryption methods (static) should've been in System.Security.Cryptography in the first place.

    What do you think?

  • Recruiter talk - ar5e and elbow

    Came across an interesting job description for an ASP.NET developer which shows that most, if not all recruitment agencies don't have any clue what they are talking about:

    "My Client has an urgent requirement for an .aspx savvy ASP.Net Developer to help out with a surge of work/projects. The successful Candidate will be able to demonstrate substantial development experience in ASP.Net & .aspx."

    Hmm. So, looks like you could have ASP.NET developers who are not .aspx savvy eh? They might be just .ascx savvy. Or maybe only .asax savvy.

    Anyone else out there who has come across some other hilarious job descriptions recently?