If you really want to use the Python code you already have, you can invoke it on the command-line via ExecuteProcess or ExecuteStreamCommand.If you are comfortable with Groovy & Bounc圜astle or Ruby & OpenSSL, you can write the decrypt script in either of those languages with only a few lines of code. One possible solution is to use JyNI which allows Jython to load CPython libraries, but I have not evaluated it in this context. Unfortunately the limitation on Python is that Jython doesn't support native libraries (such as pycrypto). The processor supports Ruby, Groovy, Lua, Javascript, and Python*. You can use the ExecuteScript processor to run a small script which performs the decryption.The GPG key uses an underlying DSA/RSA key alongside AES encryption for the data, so this would be effectively the same process (asymmetric encryption). You can use GPG to encrypt and decrypt the data, and NiFi provides first-class support for GPG decryption.I would suggest you file a Jira requesting this enhancement (don't be scared by the graph showing a discrepancy between opened & closed we're currently at the phase of the lifecycle where a release went out recently and now all the feedback is generating new tickets for the next release).įor immediate solutions, I have a few suggestions: Currently, the EncryptContent processor does not support arbitrary RSA decryption.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |