问答详情
源自:1-1 JAVA-对称加密算法DES

出现异常了

Exception in thread "main" java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCSSPadding

at javax.crypto.Cipher.getInstance(Cipher.java:535)

at com.base.encryptAndDecrypt.imooc.des.ImoocDes.jdkDES(ImoocDes.java:39)

at com.base.encryptAndDecrypt.imooc.des.ImoocDes.main(ImoocDes.java:24)


提问者:从工藤新一到江户川柯南 2016-09-19 11:39

个回答

  • 从工藤新一到江户川柯南
    2016-09-19 11:49:02

    写错了DES/ECB/PKCSSPadding 应该是DES/ECB/PKCS5Padding CS5 写成了css