MQ
11.0 10.3 10.2
11.0 10.3 10.2

Key Generation

To generate a key, FioranoMQ comes bundled with a utility class called EncryptorImpl. This utility class allows applications to create keys for specified algorithms.
The method within this utility class that supports this function are given below:

public String generateKey (String algoName)

This API can be used to generate a key as shown below:

EncryptorImpl em = new EncryptorImpl ();
String key = em.generateKey ("DES");

Using this class requires adding the statement below to the application:

import fiorano.jms.services.msg.Encryption;