1 Reply Latest reply: Feb 2, 2012 8:12 AM by gimbal2 RSS

    NoSuchAlgorithmException for PBEWithHmacSHA1AndDESede

    801501
      HI Guys

      I'm having some issues with loading this cipher with this algorithm.

      <code>
      public class ProviderCheck {


           public static void main(String []args){


      try {
                     Cipher cipher = Cipher.getInstance("PBEWithHmacSHA1AndDESede");

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

           }
      }
      </code>

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

      any idea , I'm using a jdk1.6.0_27