Solved

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

Posted on 2009-07-06
6
1,040 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

 
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

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

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…
OfficeMate Freezes on login or does not load after login credentials are input.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

615 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