Sometimes you may find yourself working with an API that gives you the opportunity to validate the integrity of a payload provided through a checksum. There are a few different ways that you could go about validating the integrity of the payload. The library and exact method of computing the checksum may differ based on your use case, but the resulting logic most likely will be similar to the examples here.