Most people think hash functions are simple, but this is the key point:
A hash function can turn data of any length into an output of fixed length. This output is called a hash value, or a digest.
The block header records the hash of the previous block. Tampering with any historical block changes its hash, causing all subsequent blocks to no longer match.
After downloading wallet software, you can compare it with the official SHA-256 checksum to make sure the installation package hasn’t been tampered with.
$BTC mining is essentially the repeated calculation of SHA-256 hashes to find a result that meets the difficulty requirements.