Solved

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

Posted on 2009-07-06
6
999 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
Comment Utility
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
Comment Utility
urg sorry copy and paste the wrong link

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

Expert Comment

by:cirlare
Comment Utility
or if you wish, you can use the microsoft solution


http://support.microsoft.com/kb/841290
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:deshaw
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now