Accounting Information Systems
Notice how any change, no matter how small results in a different hash value:
changing a “+” to a “-“ sign (compare hashes for parts a and part b)
changing from uppercase “A” to lowercase “a” (compare hashes for parts b
and c)
inserting a space (compare hashes for parts a and d)
This is the reason that hashes are so important – they provide a way to test the “integrity” of
a file. If two files are supposed to be identical, but they have different hash values, then one
of them has been changed.
The solution to part e depends upon whether you are using a simple text editor like NotePad
or a more powerful word processing program like Word. If you are using NotePad, then
simply opening the file for part a and saving it with the name part e generates an exact copy
of the original file, as evidenced by the identical hash values:
NotePad file for part a:
414b6e3799ccd6ff1fe7fb5c0b720b22995e8f28a0e0eedf00feaf54ed541490
NotePad file for part e:
414b6e3799ccd6ff1fe7fb5c0b720b22995e8f28a0e0eedf00feaf54ed541490
If you are using Word, then the “Save As” command will generate a document that has the
same text, but a different hash value because Word incorporates system data when saving
the file:
Word document for part a:
866af63d78f6546b95e48919e9007309b1cd646da384035c5e6f4790b90cbf24
Word document for part e:
03f77774bfab4cbb1b1660cb3cd7fc978818506e0ed17aca70daa146b54c06c1
But, if you right-click on the original document, select “Copy” and then paste it into the
same directory, you get a file that is marked as a copy: “Problem 9-3 part a –Copy.docx” –
which has the same SHA-256 value as the original:
866af63d78f6546b95e48919e9007309b1cd646da384035c5e6f4790b90cbf24
The point of this exercise is to show the power of using simple utilities like Notepad – you
can play with a document and restore it. In contrast, playing with a document using more
powerful programs like Word will leave tell-tale traces that the document was altered.
NOTE: simply opening a Word document to read it and then closing it or saving it (not Save
As) will not alter the hash value.
f. Hash any multiple-page text file on your computer.
No matter how large the file, the hash will be the same length as the hashes for parts a-e.
9-7
©2018 Pearson Education, Inc.