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:
Based on the account credentials connect to SafeNet KeyStore by calling NAESession.getSession().
Derive the encryption key from KeyStore by providing the secret key and calling NAEKey.getSecretKey().
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.
The returned encrypted data from KeyStore is made available on the Snap’s output stream.
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 |
---|---|
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:
Default value: Execute only |
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.