Meaningless Drivel is fun!
The moose likes Security and the fly likes Encryption Blowfish: ExceptionInInitializerError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Encryption Blowfish: ExceptionInInitializerError" Watch "Encryption Blowfish: ExceptionInInitializerError" New topic

Encryption Blowfish: ExceptionInInitializerError

alberto ag

Joined: Feb 01, 2006
Posts: 2
Hi there!,
I�m new to encryption and need to encrypt some info using Blowfish. My main goal is to encrypt a String with a key (i.e: using key generated with SecretKeySpec(key.getBytes("UTF-8"),"Blowfish")).

The problem I�m finding is that i�m getting the following error when trying to encrypt:

java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot set up certs for trusted CAs

I�ve been checking in different sites how to solve this issue, but I�m getting lost with JCE, the policy files, etc.

I just want to encrypt a String internally for my application with no need of using certs with any CA.

Isn�t there any way of doing this a bit more simple??? Has anyone come across this type of situation??

Thanks for any help....


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

This article shows the basics of JCE, and there's no mention of setting up certificates.
I agree. Here's the link:
subject: Encryption Blowfish: ExceptionInInitializerError
jQuery in Action, 3rd edition