Results 1 to 2 of 2

Thread: [2005] md5 of picture

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    107

    [2005] md5 of picture

    Hello,
    Finally I managed to take an screenshot with my new program

    Now I would like to create an md5 hash of it, each image gets an unique hash. anyone suggestions of how to do it? .gethashcode wont work each is the same when I try it. so i must get something unique on each image. bits or something? and how?
    Last edited by Wytse Talsma; Apr 17th, 2006 at 03:50 PM.

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: [2005] md5 of picture

    Use the System.Security.Cryptography namespace, namely the SHAManaged class (MD5 is easier to break than SHA). If you convert the picture to a byte array, the SHAManaged class can use it to generate a hash.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

Posting Permissions

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



Click Here to Expand Forum to Full Width