In this article

Overview

This Snap decrypts the binary documents it receives on its input view using the Blowfish algorithm and user-specified encryption parameters.

note

The default security in the JRE limits the key length for encryption keys. For stronger encryption keys, you must manually install the Java Cryptographic Extension JARs on your JCC nodes.

The default security in the JRE limits the key length for encryption keys. For stronger encryption keys, you must manually install the Java Cryptographic Extension JARs on your JCC nodes.

Snap Type

Blowfish Encrypt Snap is a TRANSFORM-type Snap that transforms the binary documents.

Prerequisites

None.

Support for Ultra Pipelines

Works in Ultra Pipelines.

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Input 

Document

Binary

Binary or Document

  • Min: 1

  • Max: 1

  • File Reader

  • Compress

Output

Document

Binary

Binary or Document

  • Min: 1

  • Max: 1

  • File Writer

  • Decompress

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current pipeline execution when the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon ((blue star)): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ((blue star)): Indicates whether the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ((blue star)): Indicates that you can add fields in the field set.

  • Remove icon ((blue star)): Indicates that you can remove fields from the field set.

Field Name

Field Type

Description

Label*

Default ValueBlowfish Decrypt
ExampleBlowfish Decrypt

String

Specify 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.

Password

Default Value: N/A
ExampleK1qjoeFQTr

String

Specify the string to generate a secret key and an initialization vector.

note
  • If Secret key property is set, the Password is ignored.

  • This field is currently not encrypted at rest and is saved and exported in plaintext. For any shareable secrets that require encryption at rest, we recommend you use a Secret key in the Symmetric Crypto Account. Using a Symmetric Crypto Account ensures that your sensitive information is protected and secure. 

  • If Secret key property is set, the Password is ignored.

  • This field is currently not encrypted at rest and is saved and exported in plaintext. For any shareable secrets that require encryption at rest, we recommend you use a Secret key in the Symmetric Crypto Account. Using a Symmetric Crypto Account ensures that your sensitive information is protected and secure. 

Secret key

Default Value:N/A
ExampleN0FzAAe4qtY=

String

Specify the secret key used for decryption.

note
  • If Secret key property is set, the Password is ignored.

  • This field is currently not encrypted at rest and is saved and exported in plaintext. For any shareable secrets that require encryption at rest, we recommend you use a Secret key in the Symmetric Crypto Account. Using a Symmetric Crypto Account ensures that your sensitive information is protected and secure. 

  • If Secret key property is set, the Password is ignored.

  • This field is currently not encrypted at rest and is saved and exported in plaintext. For any shareable secrets that require encryption at rest, we recommend you use a Secret key in the Symmetric Crypto Account. Using a Symmetric Crypto Account ensures that your sensitive information is protected and secure. 

Initialization vector

Default Value: N/A
Example296151aacf89c87f

String

Specify the initialization vector used for decryption. It should be in hexadecimal format, and should not be used in ECB mode.

Cipher mode*

Default ValueECB
ExampleCFB

Dropdown list

Specify the mode of operation for a block cipher. The available options include: ECB, CBC, PCBC, CTR, CTS, CFB, CFB8, CFB16, CFB24, CFB32, CFB40, CFB48, CFB56, CFB64, OFB, OFB8, OFB16, OFB24, OFB32, OFB40, OFB48, OFB56, OFB64.

Encryption padding*

Default Value: PKCS5PADDING
ExampleNOPADDING

Dropdown list

Select the encryption padding from the list. The available options include: 

  • PKCS5PADDING

  • ISO10126PADDING

  • NOPADDING

note

When you select the 'NOPADDING' option, the data is processed in blocks of the same size. It ignores the characters in the end if those are less than the size of the block. As a result, there is a chance of of losing characters at the end.

When you select the 'NOPADDING' option, the data is processed in blocks of the same size. It ignores the characters in the end if those are less than the size of the block. As a result, there is a chance of of losing characters at the end.

Snap Execution

Default Value: Validate & Execute
Example: Execute only

Dropdown list


Related Content