A hash is the output of a hash function: a fixed-length string that uniquely represents input data. A tiny change in the input produces a completely different hash. You cannot "un-hash" back to the input.
TON uses SHA-256 to hash cells and content. A block hash or a transaction hash is the SHA-256 of its BoC representation.