I need to generate an md5 hash for a list of tif and jpg images.
The hash must be inserted in an XML file with metadata about each image, which will be used for the digitalisation of the document.
The use of the md5 hash was not my decision, but a formal requirement of a standard based on the Dublin Core for the digitalisation of these kinds of documents. Xml file, md5 tag is underlined
I am currently generating each md5 hash using Windows built-in Certutil program from the command prompt.
My question is simple: am I doing this right? I know the process is slow, but the list is short.
it looks OK, remember that specifying hash algorithm (MD5) works from windows 7 and up (older windows throw and error) and must be in uppercase. You can also add find /v "hash" to get only hash itself like this
for example, running on windows 8, i got this output
and with find /v "hash" i've got
the find trick is to exclude (/v parameter) following string "hash" and you have to specify the string in double quotes. As the first and last line around hash itself contain word hash, you have clean output
my version works from cmd not powershell