SafeNet AES Encrypt

In this article

Overview

Safenet AES encrypt snap encrypts 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 by calling NAESession.getSession()

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

  3. Pass the data along with other information such as “Cipher Mode”, “Encryption Padding”, “Initialization Vector” and the encryption key by calling cipher.init() for crypto mode setup along with secret key and cipher.doFinal() for data encryption/decryption. 

  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 encryption. As part of the snap the account details consists of username and password to connect to KeyStore.

Snap Type

SafeNet AES Encrypt Snap is a READ type Snap that encrypts 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 encryption key from KeyStore by providing the secret key and calling NAEKey.getSecretKey(). 

Initialization vector

Pass the information and get “Initialization Vector”

Cypher mode 

Pass the information and get “Cipher Mode”

Encryption Padding

Pass the data along with other information get the “Initialization Vector”

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