MD5 encryption examples

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default MD5 encryption examples

    Hi,

    I need an example on MD5 encryption.

    In a ascii textfile I have a date in string format. I need
    an example how to compute a hash value on the datestring
    and another method to compare the two with each other.

    TIA

    /Kenneth
    Kenneth Guest

  2. Similar Questions and Discussions

    1. Using examples
      I am new to flex and have purchased a few components with examples. What are the step by step instructions for using the projects within Flex....
    2. Examples for Feb CTP
      Hi people! I have visit the page ...
    3. Highlevel API examples
      Are there any examples/documentation about using the HighlevelApi? Thanks, Rene Olsthoorn, Mediasystemen.
    4. Need some help with Director examples
      Hi. Hope someone out there can help. I currently have the task of trying to convince my work to switch the current sales presentation from an old...
    5. website examples
      I am thinking about using publisher for my website and I would like to see what other people have done with publisher and websites. Can any one...
  3. #2

    Default Re: MD5 encryption examples

    Kenneth,

    If you want to use MD5 (or SHA-1) hashing, the easiest way would be to call
    the HashPasswordForStoringInConfigFile method, which returns a bas64-encoded
    hash value. e.g.:

    // C# code
    using System.Web.Security;
    ....
    string base64HashValue =
    FormsAuthentication.HashPasswordForStoringInConfig File
    ("1/2/2003 7:04 PM", "md5");

    Then you can simply compare strings. If you want to keep the hashed value in
    the byte array format (or want to do something more sophisticated), check
    this example: [url]http://www.obviex.com/samples/hash.aspx[/url].

    Alek

    "Kenneth" <kenneth.philp@chello.se> wrote in message
    news:517201c3ac5b$2b64e5e0$a601280a@phx.gbl...
    > Hi,
    >
    > I need an example on MD5 encryption.
    >
    > In a ascii textfile I have a date in string format. I need
    > an example how to compute a hash value on the datestring
    > and another method to compare the two with each other.
    >
    > TIA
    >
    > /Kenneth

    Alek Davis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139