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:
http://www.obviex.com/samples/hash.aspx.
Alek
"Kenneth" <> wrote in message
news:517201c3ac5b$2b64e5e0$...
> 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