This discussion is archived
1 Reply Latest reply: Feb 2, 2012 6:12 AM by gimbal2 RSS

NoSuchAlgorithmException for PBEWithHmacSHA1AndDESede

801501 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points