DI Management Home > Utilities > Generate file digest value

Generate file digest value

The Windows program digestvalue.exe is a freeware command-line program that computes the digest value in base64 encoding for a file or list of files. The base64-encoded digest value is suitable for inserting in the <DigestValue> node of an XML-DSIG document.

For example, to compute the digest value of the file abc.txt using the default algorithm SHA-1:

>digestvalue abc.txt

If you want the more traditional sha1sum and md5sum freeware programs that generate the value in hexadecimal, see our Generate file checksums page.

More examples

Specify files using a wildcard.
>digestvalue *.txt
98O8HYCOBHMq32eZZczDTKeuNEE=  123-9.txt
qZk+NkcGgWq6PiVxeFDCbJzQ2J0=  abc.txt
Kq5sNclPz7QV2+lfQIuc6R7oRu0=  hello.txt
iKW4Z8PRECB3huZlI80eSkhNppc=  hellon.txt
Compute the SHA-256 digest.
>digestvalue -2 abc.txt
Compute the MD5 digest and display in hexadecimal.
>digestvalue -mx abc.txt
Display the help
>digestvalue -h
Usage: digestvalue [-2|-m] [-x] [-h|v] [FILE]...
Compute the digest value for each FILE.
With no file, read standard input.
 -2    use SHA-256 digest algorithm (default=SHA-1)
 -m    use MD5 digest algorithm (default=SHA-1)
 -x    display digest in hex encoding (default=base64)
 -h    display this help and exit
 -v    output version information and exit


  1. Binaries: digestvalue-1.0.0.zip (63 kB) [sha1=ca76870e99ecbc53af1c8894007e07a81c7e1bdf]. The latest version is 1.0.0 signed on 2017-03-09.


To install, just copy the file digestvalue.exe to a folder on your Windows PATH, for example C:\Windows. You may need administrator permissions to copy the file.

Contact us

To report a bug, comment on this page or to contact us, please send us a message.

This page first published 11 March 2017. Last updated 3 July 2017.