Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

MD5 Checksum comparison asp.net vb

asp.net md5

  • Please log in to reply
1 reply to this topic

#1 Ray2000

Ray2000

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 07 April 2010 - 06:07 AM

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.
  • 0

#2 Deadlock

Deadlock

    CC Resident

  • Just Joined
  • PipPipPipPip
  • 64 posts

Posted 07 April 2010 - 12:28 PM

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.
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download