![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
The digest program returns a message digest for one or more files. We list a few examples of the digest command here to illustrate its usefulness and ease of use. To get started, lets compute the message digest of these files: digest README.txt digest.rdf Where digest.rdf looks something like this:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:digest="http://www.wizards-toolkit.org/digest/1.0/">
<rdf:Description rdf:about="README.txt">
<digest:modify-date>2007-08-25T20:19:02-04:00</digest:modify-date>
<digest:create-date>2007-08-25T20:19:02-04:00</digest:create-date>
<digest:timestamp>2008-01-23T12:25:47-05:00</digest:timestamp>
<digest:hash>SHA256</digest:hash>
<digest:digest>78709afc0de69f51085675329dc44c8b475258c1e7fd29acea078347e641a020</digest:digest>
</rdf:Description>
</rdf:RDF>
To determine if any files have been changed, use this command: digest -authenticate digest.rdf - Only files that fail to authenticate are listed. Notice the dash at the end of the command line, a dash means print the output to the terminal. The digest command recognizes these options. Click on an option to get more details about how that option works.
|