• Post Reply Bookmark Topic Watch Topic
  • New Topic

Encryption Blowfish: ExceptionInInitializerError

 
alberto ag
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

This article shows the basics of JCE, and there's no mention of setting up certificates.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!