Extract hash value from a file
Hashes are the values that will help determine the integrity of the file, most websites publish the hash values of the files which they allow you to download, you need to compare the value of the hash with the hash value of the downloaded file to see the integrity of the downloaded file is valid.
widely used algorithms for file hashing are sha1 and MD5.
Here below useful information in the context of cyber security about file hashing
https://www.sentinelone.com/cybersecurity-101/hashing/
On a windows system, to extract hash value, you can use the command get-filehash in PowerShell
Here below detailed article on this
On Linux systems, you can use the command sha1sum, if you want to check the md5 hash value then use the command md5sum
https://askubuntu.com/questions/61826/how-do-i-check-the-sha1-hash-of-a-file
https://www.putorius.net/linux-checksum-file-integrity-check.html
Also please check “Analyze a malware file“