How do i generate a sha value for a file?



  • Read a good SHA outline here: https://en.wikipedia.org/wiki/Secure_Hash_Algorithms

    The "message" is what you put through a Cryptographic Hash Algorithm, and the result output is the "message digest".

    $ sha512sum slide1.png
    08f7da4f5ef48c399d926618f0bfebbf6de70032f032355fe9fd39fc2f24cc827edb8bb12a8595260880891540ccaef84a7c511f598cde981ca7c05d6583940e  slide1.png
    

    The output would got into a file like slide1.png.sha512, this is made public so anyone downloading the slide1.png file can check the slide1.png.sha value to see if it matches. If it does not match do not use the downloaded file.


Log in to reply
 

© Lightnetics 2024