Encrypt Password w/MD5

Discussion in 'ASP .Net' started by Jason Williard, Oct 16, 2004.

  1. How would I encrypt a string using MD5?

    --

    Thank You,
    Jason Williard
     
    Jason Williard, Oct 16, 2004
    #1
    1. Advertising

  2. Jason Williard

    Karl Guest

    Something like:
    string password = "somePassword"
    Byte[] unencodedPassword = Encoding.Default.GetBytes(password);
    Byte[] encodedPassword = MD5.Create().ComputeHash(unencodedPassword);
    return BitConverter.ToString(encodedPassword);

    Karl

    --
    MY ASP.Net tutorials
    http://www.openmymind.net/


    "Jason Williard" <> wrote in message
    news:rJccd.481877$8_6.77808@attbi_s04...
    > How would I encrypt a string using MD5?
    >
    > --
    >
    > Thank You,
    > Jason Williard
    >
    >
    >
    >
     
    Karl, Oct 16, 2004
    #2
    1. Advertising

  3. =?Utf-8?B?TGVvbiBXZWxpY2tp?=, Oct 16, 2004
    #3
  4. Steve C. Orr [MVP, MCSD], Oct 17, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    9
    Views:
    17,211
    John Salerno
    May 8, 2006
  2. Replies:
    14
    Views:
    799
    Daniel Rudy
    Sep 20, 2005
  3. AAaron123
    Replies:
    2
    Views:
    2,376
    AAaron123
    Jan 16, 2009
  4. Peter Woodsky

    create a md5 / md5 passwd with a salt

    Peter Woodsky, Nov 20, 2008, in forum: Ruby
    Replies:
    6
    Views:
    245
    Brian Candler
    Nov 21, 2008
  5. http://ejobseek.com

    Encrypt in Perl, De-encrypt in Javascript

    http://ejobseek.com, Sep 1, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    314
    James Willmore
    Sep 1, 2003
Loading...

Share This Page