• Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue using Java cryptography.  RSS feed

 
Jonah Kommu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am having problem at cipher = Cipher.getInstance("Blowfish","SunJCE");
unfortunately, The logging FWork is not printing anything from this line onwards.
This code works on my local machine...
Not sure if the if the environment settings (on the target) being different could be an issue?
Target env. has JDK 1.5
Do some providers come standard with JDK.
Are there any jars that could be missing on the target env. ?

TIA !!!
 
Zandis Murāns
Ranch Hand
Posts: 174
Java Java ME Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure SunJCE provider is listed in your %java_home%/jre/lib/security/java.security file

#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=sun.security.rsa.SunRsaSign
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
security.provider.6=com.sun.security.sasl.Provider
security.provider.7=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.8=sun.security.smartcardio.SunPCSC
security.provider.9=sun.security.mscapi.SunMSCAPI
 
Jonah Kommu
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You for response.

I did check the file before selecting it.
Do the providers listed in the file come standard? Are they packed in a specific JAR that could be missing in my classpath?

TIA !!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!