Filter content by checksum

How can I configure nginx to manipulate the content of http-response,
for
example filtering the content of the response by checksum?

You should write a new module or try using lua …