File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Encryption Blowfish: ExceptionInInitializerError" Watch "Encryption Blowfish: ExceptionInInitializerError" New topic
Author

Encryption Blowfish: ExceptionInInitializerError

alberto ag
Greenhorn

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....

cheers,

Alberto.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
Welcome to JavaRanch.

This article shows the basics of JCE, and there's no mention of setting up certificates.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Encryption Blowfish: ExceptionInInitializerError