Contributors: Saad Islam and Inam Ul Haq
Terminal Version1
Run sha256.m to take the hash of the file 'inputfile.txt' using the following command in MATLAB:
sha256('inputfile.txt')
You should see the following output:
Elapsed time is 0.007246 seconds.
ans =
'6F722FDD1D265D07CF70BBEE7340E86F236DAAB4924BD1C4471FFC422E3B2B7C'
You can choose any file of your choice.
Graphical Version1
You can also choose the graphical version "sha256gui.m" to take the hash of any file using the following easy to use interface:
http://csrc.nist.gov/groups/STM/cavp/documents/shs/SHAVS.pdf