How do I generate hash algorithm id of secure hash algorithms like MD5 and SHA-1?
Posted on 2009-07-06
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.