my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 41182
    
  45
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
 
Don't get me started about those stupid light bulbs.
 
subject: Encryption Blowfish: ExceptionInInitializerError
 
Similar Threads
Blowfish implementation
Java Cryptography
How to use blowfish
How to get key from decrypted byte[]
Blowfish