使用默认随机填充算法报安全漏洞

RSA漏洞修复

 

 

修复方法:引入jar包

<dependency>

            <groupId>org.bouncycastle</groupId>

            <artifactId>bcprov-jdk15on</artifactId>

            <version>1.56</version>

</dependency>

 

Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());

Cipher cipher = Cipher.getInstance("RSA/None/OAEPWithSHA-1AndMGF1Padding");

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2021-11-19
  • 2021-11-19
  • 2021-05-26
  • 2021-07-10
猜你喜欢
  • 2021-11-19
  • 2021-12-14
  • 2021-09-28
  • 2021-07-05
  • 2021-09-05
  • 2021-11-19
  • 2021-09-30
相关资源
相似解决方案