Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: Tim MeagherHi,
It's pretty much a matter of:
- Setting a parameter on the node which will tell you which field to encrypt
- Then, in the setup method
- Reading this parameter into the java node
- Ensuring that the referenced field exists in the input metadata
- Setting up the output metadata
- Then, in processAll
- Reading each record
- Extracting the field value from this record
- Using your provided method to obtain a SHA1 encrupted version of the field
- Writing this to an output record
All of these topics (except for step 3.3 which is specific to this case, but pretty trivial) are covered in the Java Node Getting Started Guide, so you should be able to figure it out from there, using the examples in the getting started guide as a basis.
In any case, I've attached a node which I think does what you probably want.
Attachments:
sha1.brg