Solved

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

Posted on 2009-07-06
6
1,017 Views
Last Modified: 2013-12-04
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
0
Comment
Question by:deshaw
  • 4
  • 2
6 Comments
 
LVL 2

Expert Comment

by:cirlare
ID: 24792161
well usually encryption / compress tool have hashing function built in.

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

0
 
LVL 2

Expert Comment

by:cirlare
ID: 24792168
urg sorry copy and paste the wrong link

http://www.dominik-reichl.de/opensource.shtml
0
 
LVL 2

Expert Comment

by:cirlare
ID: 24792179
or if you wish, you can use the microsoft solution


http://support.microsoft.com/kb/841290
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 1

Author Comment

by:deshaw
ID: 24792257
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
 
LVL 2

Expert Comment

by:cirlare
ID: 24795161
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
 
LVL 1

Accepted Solution

by:
deshaw earned 0 total points
ID: 24866656
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question