How to rekey a stream with a function

Question:

How can I rekey records in a Kafka topic, whereby the new key is a variation of data currently in the payload?

Edit this page

Code example:

A tutorial for this doesn't exist yet, but it could...
Help build it!