简体   繁体   中英

How to encrypt a column using nifi

For security reasons I need to encrypt a column before putting the data in the repository. How can I do this using python or some processor. I tried to use the cryptography library but without success. If you can guide me which is the best way I would be very grateful.

Take a look at ScriptedTransformRecord , it should allow you to do arbitrary operations on whichever field/columns you like. If you're using a Python library, remember that the script engine is Jython and cannot import modules that aren't pure Python (CPython modules for example). Java has crypto libraries so you could achieve this with Groovy instead.

There is a Jira to cover an EncryptAttributes processor, but perhaps there should be one for Expression Language and/or RecordPath functions as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM