2 Replies Latest reply on Feb 2, 2012 2:49 PM by gimbal2

    NoSuchAlgorithmException  error

      Hello guys,

      I'm unable to get this algorithm and wonder why .. it's very strange
      i've tried in my Jdk version 1.6.27 as well as on Jrockit jrmc-3.1.0-1.6.0/
      both throw same exception.

      public class ProviderCheck {

           public static void main(String []args){

      try {
           //javax.crypto.SecretKeyFactory secKeyFac = javax.crypto.SecretKeyFactory.getInstance("PBEWithHmacSHA1AndDESede", "SunJCE");
                     Cipher cipher = Cipher.getInstance("PBEWithHmacSHA1AndDESede");

                } catch (NoSuchAlgorithmException e) {
                     // TODO Auto-generated catch block
                } catch (NoSuchPaddingException e) {
                     // TODO Auto-generated catch block


      encountering this following error

      java.security.NoSuchAlgorithmException: Cannot find any provider supporting PBEWithHmacSHA1AndDESede
           at javax.crypto.Cipher.getInstance(DashoA13*..)
           at ProviderCheck.main(ProviderCheck.java:24)