Jump to content

MD5 Checksum comparison asp.net vb

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Ray2000

Ray2000

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,
I am a bit new to this, but here goes. I need help on developing an application or simple script in asp.net which basically checks the md5 checksum of a file (my web application) and compares it to the original and alerts me of any changes that have been made ie defacement.

Please i will be very grateful if anyone could help.

#2
Deadlock

Deadlock

    Learning Programmer

  • Members
  • PipPipPip
  • 81 posts
Dim myMd5CheckSum as String = System.BitConverter.ToString(System.Security.Cryptography.MD5.Create().ComputeHash(IO.File.OpenRead("c:\windows\explorer.exe"))).Replace("-", "").ToLower()

Replace c:\windows\explorer.exe with your desired filepath.