JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

java.security.NoSuchAlgorithmException: Cannot find any provider supporting AES/CBC/PKCS7Padding 解决办法

发布时间 2023-05-05 12:02:20作者: 企业级理解

Java使用AES/CBC/PKCS7Padding加解密时会报错,因为原生JDK不支持。

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

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

 

    本栏目推荐文章
  • Pycharm读excel文件报错xlrd.biffh.XLRDError: Excel xlsx file not supported
  • Cisco Secure Client 5.1.1.42 (macOS, Linux, Windows & iOS, Andrord) - 思科安全客户端下载
  • [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
  • (token,Spring Security)
  • seata-server-1.8.0 | Could not resolve placeholder 'console.user.username' in value "${console.user.username}"  | "${seata.security.secretKey}"
  • Support in Wayland Compositor with rime
  • python生成词云报错:ValueError: anchor not supported for multiline text
  • gsamplerCubeArrayShadow isn't supported in textureGrad, textureLod or texture with bias
  • Spring Security
  • BSP(Board Support Package),板级支持包
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们