How do I generate hash algorithm id of secure hash algorithms like MD5 and SHA-1?

Hi,

We want to block certain applications in our domain using hash rules of Microsoft's software restriction policy.  The hash rule will expect three values - file hash, file length in bytes and hash algorithm id.  I've a script which will periodically generate md5 hash of the applications to be blocked but I'm not sure of how to generate the hash algorithm ids.  When I use browse button and select the required file, the policy is auto-populating the values and most of the times it is using 32771 as the hash algorithm ID.  Are there any standard list of algorithm IDs for each algorithm?  Or is there any tool to generate hash algorithm IDs so that I can enhance my script to generate algorithm IDs along with file hashes.

Regards,
Aruna
LVL 1
deshawAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
deshawConnect With a Mentor Author Commented:
I got the hash algoritm IDs for various hash funtions from this site - http://technet.microsoft.com/en-us/library/dd759129.aspx
32769 for MD2
32770 for MD4
32771 for MD5
32773 for MAC
32772 for SHA1
However, I'm not sure if these hash function to hash algorithm ID mapping is done by M$ or if it is a standard notation.
0
 
cirlareCommented:
well usually encryption / compress tool have hashing function built in.

here is a open source one
http://sourceforge.net/projects/gperf/

0
 
cirlareCommented:
urg sorry copy and paste the wrong link

http://www.dominik-reichl.de/opensource.shtml
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
cirlareCommented:
or if you wish, you can use the microsoft solution


http://support.microsoft.com/kb/841290
0
 
deshawAuthor Commented:
I had a look at the links and it has steps to generate file hashes.  But I'm looking for the hash algorithm IDs of each of the algorithm.
Thanks!
0
 
cirlareCommented:
i am not following you. you want a program that generates hash and have a unique id to that piece of software that you just hashed?

will have the script include the pid number be enough?
0
All Courses

From novice to tech pro — start learning today.