RSAEncryptionUtility
The RSAEncryptionUtility
allows you to encrypt multiple data from an input file using the RSA algorithm and store the encrypted data in an output file. You provide the file names for both the input and output data.This utility uses the Openssl API, not the CAPI library, to encrypt data. A user can decrypt that data in Key Manager.
A user can decrypt that data in CipherTrust Manager.
On installing the CADP for C:
For Linux, the
RSAEncryptionUtility
utility gets installed in the "utilities" folder inside installed directory.For Windows, the
RSAEncryptionUtility
utility gets installed in the "\CipherTrust\CADP_for_C\utilities\" directory.
Supported Platforms
RSAEncryptionUtility is supported on the following platforms:
Windows Server
Linux
Supported RSA Algorithms
The RSAEncryptionUtility
supports the following algorithms:
RSA
RSA/PKCS1Padding
RSA/PKCS1OAEPPadding
Commands
To see the utility usages:
./ RSAEncryptionUtility
To run the utility:
./ RSAEncryptionUtility –key <Public key path> -version <version no/0> -algorithm <RSA algo name> -inputFile <input data file path> -OutFile <outfile path> -delimiter <delimiter of input data>
Parameters in the above command are explained the table below:
Parameter | Description |
---|---|
-key | RSA public key path, including filename. The utility reads this file and generates key bytes. |
-version | RSA key version number, if it a versioned key. If it is a non-version key then provide 0. |
-algorithm | RSA algorithm name. |
-inputFile | Input data file path, including file name. This file contains data to be encrypted. |
-OutFile | Output file path, including file name, where encrypted data will be written. |
-delimiter | Delimiter of data in the input file. Based on the delimiter, data in the file is parsed into input data for encryption. The default delimiter is CRLF. |
Note
• If any error occurs while encrypting data from input file, then the RSAEncryptionUtility
breaks the encryption process. Thus, the remaining data is not observed in the decrypted data.
• While reading decrypted data from output file, the data is read using the keysize.