JAVA加密解密异常之java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/CBC/PKCS7

AVA加密解密异常之java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/PKCS7Padding

网上最接近的解决办法:

JAVA加密解密异常之java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/CBC/PKCS7_第1张图片最后解决办法:

1.在jdk中的jre\lib\security修改java.security文件,替换security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider。

并将原有的#security.provider.7=com.sun.security.sasl.Provider 注释掉

2./jdk/jre/lib/ext下添加jar包bcprov-jdk15on-1.58.jar

下载地址:https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.64
 

你可能感兴趣的:(报错,java,开发语言)