Raman, There are no out of the box apache nifi processors to encrypt specific fields of a given record. With the record reader/writer capabilities that came out in 1.3.0 we can probably much more easily provide one but in the mean time it is a pretty straight forward extension to build. You could use execute script to nail down requirements and understand throughput needs then build a Java implementation of the processor to optimize performance.
Thanks Joe On Tue, Jun 27, 2017 at 7:33 AM, Ramaninder Singh Jhajj <[email protected]> wrote: > Hello Everyone, > > I need some help with Nifi. I have a requirement where we need to encrypt > and hash some of the data in a flowfile instead of the whole flowfile. The > situation is, we receive customer information in a flowfile in XML format, I > do some cleanup and tranform the flowfile content in JSON content. Now the > requirement if we need to encrypt some of the sensitive data of > customer(only some attributes of the JSON flowfile). So if customer JSON > contains name, phoneno, email, SSN etc. we just want to encrypt email and > SSN and not the whole file. > > I know there is a processor for encryption but that encrypts the whole > flowfile. Is there a processor or a way to encrypt some of the attributes of > JSON file. We do not want to use "ExecuteScript" processor as it can not be > parallelised and will run the script in linear fashion (let me know if I am > wrong here). > > > Kind Regards, > Raman
