I wonder if there's an easy way to hash?-VBForums
Results 1 to 3 of 3

Thread: I wonder if there's an easy way to hash?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Posts
    937

    I wonder if there's an easy way to hash?

    I remember reading that CryptGenRandom (which requires a handle to a Cryptographic Provider to be used) is actually just a shortcut to RtlGenRandom (which does not require any Cryptographic Provider handle). I'm wondering if there are similar shortcuts to the hashing functions. For example I would like to hash some data with SHA256, but currently I have a lot of code surrounding the actual function to hash the data. This means first setting up the hash with a call to CryptCreateHash (which requires a Cryptographic Provider handle to use), followed by CryptHashData, and then CryptGetHashParam. I'm wondering, is there any alternative to these? In particular, is there something like an undocumented (but discovered by reverse engineers) alternative to CryptCreateHash, one which doesn't require a Cryptographic Provider handle?

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,774

    Re: I wonder if there's an easy way to hash?

    You can find a class for SHA256 in the attachment of this thread: http://www.vbforums.com/showthread.p...HA1-and-SHA256

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2008
    Posts
    937

    Re: I wonder if there's an easy way to hash?

    Quote Originally Posted by CVMichael View Post
    You can find a class for SHA256 in the attachment of this thread: http://www.vbforums.com/showthread.p...HA1-and-SHA256
    I'm looking for a hidden Windows API function (possibly one which can only be accessed by ordinal) which allows the calculation of an SHA256 hash.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.