Obfuscate properties before publishing


I am doing event sourcing using NSB. I publish an event DeviceRegistered. There is one property in in class DeviceToken that I want for it to be obfuscated when published via NSB.

Is there out of the box support or I have to write a middleware to handle this scenario

Secure property encryption comes to my mind. Have a look and see if this helps you.