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
Solved

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

Posted on 2009-07-06
6
1,015 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
Recently, I read that Microsoft has analysed statistics for their security intelligence report. It revealed: still, the clear majority of windows users do their daily work as administrator. An administrative account is a burden, security-wise. My ar…
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…

856 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