code: def auth(self, encoded):
          
          message, signature = self.split(encoded)
          computed = self.sign(message)
          if not hmac.compare_digest(signature, computed):
              raise AuthenticatorInvalidSignature
docs: Validate integrity of encoded bytes