I'm not sure about your requirement. but you can develop kettle plugin
In the plugin just pass filename to method Runtime.exec() to encrypt your file.
Question
I want to encrypt files using PGP in Pentaho. I have a Java program to encrypt the file through command line. Kettle recommends to encrypt row by row using user defined call, Is there a way to encrypt whole file as such using kettle user defined class? I am new to kettle.
Solution
I'm not sure about your requirement. but you can develop kettle plugin
In the plugin just pass filename to method Runtime.exec() to encrypt your file.
OTHER TIPS
Yes you can. Create a new Kettle Job, add your file transformation to the flow job, now use the Encrypt files with PGP Step.
You can do this at job level. you have a step called Encrypt PGP files. This has to be used at job level. Hope I have answered your question.