SafeNet AES Decrypt

In this article

Overview

Safenet AES decrypt snap decrypts the data using the Safenet AES algorithm. The steps followed to perform the encryption are: 

  1. Based on the account credentials connect to SafeNet KeyStore. 

  2. Derive the encryption key from KeyStore by providing the secret key. 

  3. Call the decrypt API and pass the data along with other information such as “Cipher Mode”, “Encryption Padding”, “Initialization Vector” and the encryption key. 

  4. The returned encrypted data from KeyStore is made available on the Snap’s output stream. 

  5. Error stream will contain the errors in the form of document's in case of any error happens in the pipeline.

Both 128-bit and 256-bit Safenet keys can be used for decryption also. As part of the snap the account details consists of username and password to connect to KeyStore. 

Ensure to use the same credentials and snap properties for decryption as it was used for encryption

Snap Type

SafeNet AES Decrypt Snap is a Write type Snap that decrypts the data using the Safenet AES algorithm.

Prerequisites

  • None.

Limitations and Known Issues

None.

Account

This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint.

Snap Views

View

Description

View

Description

Input

This Snap has at most one document input view. Each document contains data in the form of json.

Output

This Snap has at most one document output view. Each document contains a corresponding response in the form of JSON.

Error

This Snap has at most one document error view and produces zero or more documents in the view. Each document contains the corresponding error record if the snap is not able to process data.

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

Secret key name

required

Derive the decryption key from KeyStore by providing the secret key and calling NAEKey.getSecretKey(). 

Initialization vector

Call the decrypt API and pass the data and get “Initialization Vector”

Cypher mode 

Call the decrypt API and pass the data get “Cipher Mode”

Encryption Padding

Derive the encryption key from KeyStore by providing the secret key

Snap Execution

optional

Specifies the execution type:

  • Validate & Execute: Performs limited execution of the Snap (up to 2000 records based on Preview doc count, default is  50 records) during Pipeline validation; performs full execution of the Snap (unlimited records) during Pipeline execution.

  • Execute only: Performs full execution of the Snap during Pipeline execution; does not execute the Snap during Pipeline validation.

  • Disabled: Disables the Snap and, by extension, its downstream Snaps.

Default value: Execute only