Wrox Home  
Search P2P Archive for: Go

  Return to Index  

security_java thread: PBE Example Fails in Ch4 of "Prof Java Sec"


Message #1 by Wilson Figueroa <flip@s...> on Thu, 9 May 2002 08:03:20 -0700 (PDT)
Hello All,

I am running the PBE example from Chapter 4 of the book and it fails with the following:

$ java PBE -e hello "hello"
Exception in thread "main" java.security.NoSuchAlgorithmException: Algorithm PBEWithSHAAndTwofish-CBC not available
        at javax.crypto.SunJCE_b.a(DashoA6275)
        at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
        at PBE.encrypt(PBE.java:67)

I was able to run the SimpleExample without incident.

Does this mean that my install of Bouncy Castle failed even though the "JCEInstallTest.java" passed as it may be using Sun's default
security provider?

This makes life really difficult for someone trying to learn Java and Security at the same time.  I thought things were going pretty
smoothly.

Anyway, can anyone please provide guidance here? 

Thank you, Flip



_____________________________________________________________
Visit our web directory and reference library at http://safebunch.com. Get FREE email for life at ---> http://safebunch.com

_____________________________________________________________
Promote your group and strengthen ties to your members with email@y... by Everyone.net  http://www.everyone.net/?btn=tag

  Return to Index