On this Page
Table of Contents | ||||
---|---|---|---|---|
|
Snap type: | Transform | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: | Pretty Good Privacy (PGP) is an encryption/decryption program that provides cryptographic privacy and authentication for data communication. PGP is popularly used to digitally sign, encrypt or decrypt email messages or files being transferred over the Internet.
This Snap decrypts PGP-encrypted data provided as an input stream using the private key and passphrase. This Snap should be attached to the input binary data stream to be decrypted in the pipeline.
| |||||||||||||
Prerequisites: | [None] | |||||||||||||
Known Issues | The Snap writes an empty document to the output view when there is an error in the Snap in the 4.25 release version (main9554). If you update to the 425patches9581 version, the Snap fails to decrypt any non-signed encrypted file greater than 500 bytes. However, it is able to decrypt signed encrypted files. | |||||||||||||
Support and limitations: | Works in Ultra Pipelines. | |||||||||||||
Account: | This Snap uses account references created on the Accounts page of SnapLogic Manager called PGP Private Key Account that stores the private key and pass phrase used for decryption. See Configuring Binary Accounts for information on setting up this type of account. When setting up the account, enter your private PGP key and your PGP passphrase. The credentials setup will automatically decrypt the PGP-encrypted message. | |||||||||||||
Views: |
| |||||||||||||
Settings | ||||||||||||||
Label | Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. | |||||||||||||
Is signed file? | Select this option to specify if the selected file is a signed file. | |||||||||||||
|
|
Examples
The following example includes: Sample input data which is successfully encrypted using the PGP Encrypt Snap and then decrypted using the PGP Decrypt Snap.
Encrypting Data Using the PGP Encrypt Snap
We will start with a JSON Generator Snap which has a sample message "Hello World", which is formatted and written as JSON binary data for the PGP Encrypt Snap to ingest.
We can see that the Message is Encrypted as the output of the PGP Encrypt Snap.
Decrypting Data Using the PGP Decrypt Snap
We will write the file out as File_encrypt.pgp to the SnapLogic DB. Then we proceed to decrypt the encrypted file and write it to the SnapLogic DB as File_decrypt.txt.
We can see that the output from the Decrypt Snap matches our original raw unencrypted data:
We have successfully decrypted the message.
Attachments
Attachments | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|