To check sum for SHA256 for file you can use certutil
command.
For example when you download file from the server (example: phpMyAdmin zip file) on the right side of the download zip file you have also SHA256 available. If the content of the fille changes the checksum also check. So if you want to be sure that the file was not change you can compare value from a file:
With the one generated from downloaded file:
certutil -hashfile phpMyAdmin-5.1.1-all-languages.zip SHA256
which is in fact identical with a hash from a file that we downloaded with our file
certutil
supports algorithms:
Command | Hashing Function | Output |
---|---|---|
MD2 | MD2 message-digest algorithm | 32 digits bf37869296b43d561623bbd1a9fceab1 |
MD4 | MD4 message-digest algorithm | 32 digits c0e01d37a2041634870aef33b646e3af |
MD5 | MD5 message-digest algorithm | 32 digits a5d0173a59d8b5728c655af1d45c803a |
SHA1 | SHA-1 secure hash algorithm 1 (160 bit) | 40 digits fc9421a01f0a605b7f99e11a78a41984e50c6fac |
SHA256 | SHA-2 256-bit secure hash algorithm | 64 digits c2397243964401a5aaec496993de6683ca414862 164f6803cc839cbb1dfcb161 |
SHA384 | SHA-2 384-bit secure hash algorithm | 96 digits 37409aedd9519aae62c45652a83e5c3046e88eb6 d9cc7115ab69efff45b842ecb0fc446786c7edd060 f84d4ab2c3541a |
SHA512 | SHA-2 512-bit secure hash algorithm | 128 digits 177bb9d9f90f3c4da812d5d0e18f32191f59749bb c3e37fc009767cd23b1b40efec5b46943f6a41c81c 8adbc67347b262b0f3fa65ab55cae7ef2a6552e9f8fac |
If you wan to see how to perform pgp verification go to “key verification of downloaded file” blog post.
https://www.thesslstore.com/blog/difference-sha-1-sha-2-sha-256-hash-algorithms/
https://ladedu.com/how-to-verify-a-md5-or-sha-checksum-on-windows-10/