cancel
Showing results for 
Search instead for 
Did you mean: 

Encrypt and decrypt of Field

Ajay_Chawda
Contributor

Hello Experts,
i’m trying to encrypt one of the field of csv file using Encrypt Field snap.
i have selected transform type as auto and selected account of Passphrase-based Key type.

As a result of encrypt field snap ,field got encrypted.
in next snap i’m mapping encrypted field(column.ciphertext) and other columns and writing data to file.

image

In second pipeline reading encrypted file and trying to decrypt using same Passphrase-based Key based account.

image

but encrypted field is not getting decrypted .

Attaching pipeline for reference .

decFIle_2021_07_28.slp (10.8 KB)
Encrypt file_2021_07_28.slp (10.8 KB)

Regards,
Ajay

13 REPLIES 13

peter
New Contributor III

Is there any way to pass an encrypted value from a trigger string and decrypt?

Peter

Ajay_Chawda
Contributor

Hi @rsramkoski
you mean to say this are the mandatory fields and we need to pass all of them to decrypt field snap?
means i need to pass entire msg object as it is to decrypt field snap? just storing ciphertext and passing to decrypt field snap will not work?

@Ajay_Chawda Yes that is correct. All those fields need to be supplied to the Decrypt Field Snap in order to decrypt the field. If some of the values are constant, like “transformation” and “type”, you shouldn’t need to store those but you will need to add them via a Mapper snap in the pipeline that decrypts the field.

Hi @rsramkoski
Thank you for response .