Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding");
cipher.init(mode, secretBlowfishKey());
return cipher;
}
catch (java.security.NoSuchAlgorithmException ex) {
throw new NSForwardException(ex, "Couldn't find the Blowfish algorithm; perhaps you do not have the SunJCE security provider installed properly?");
}
catch (Exception e) {
throw new NSForwardException(e);
}
}