in reply to Re^2: Digest sha256 returns gibberish
in thread Digest sha256 returns gibberish

You need to calculate sha256 on the binary form of this data, not on the hexademical string:
$ perl '-MDigest::SHA "sha256_hex"' -E'say sha256_hex(pack("H*","800C2 +8FCA386C7A227600B2FE50B7CAE11EC86D3BF1FBE471BE89827E19D72AA1D"))' 8147786c4d15106333bf278d71dadaf1079ef2d2440a4dde37d747ded5403592
Sorry if my advice was wrong.