}
} else if (generateParams.get("class").equals("encrypter")) {
Encrypter crypter = new Encrypter(
getReader(algorithm, generateParams.get("cryptedKeySet"), generateParams.get("pubKey")));
if (generateParams.get("encoding").equals("encoded")) {
String ciphertext = crypter.encrypt(testData);
return ciphertext.getBytes();
} else if (generateParams.get("encoding").equals("unencoded")) {
byte[] ciphertext = crypter.encrypt(testData.getBytes());
return ciphertext;
} else {