What kind of encryption is this ?

Discussion in 'ASP .Net' started by craigkenisston, Dec 5, 2006.

  1. I'm reviewing someone else asp.net application and I see the passwords
    are encrypted with this code:

    public static string Encrypt(string cleanString)
    Byte[] clearBytes = new UnicodeEncoding().GetBytes(cleanString);
    Byte[] hashedBytes = ((HashAlgorithm)

    return BitConverter.ToString(hashedBytes);

    And then this password is saved on a Varchar field in the database.
    Is this the common practice? Is it similar to the encryption used in
    the membership provider?
    craigkenisston, Dec 5, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.