Tag Archives: ——java.lang.SecurityException: JCE cannot authenticate the provider BC

[Solved] Encryption and decryption error: java.lang.SecurityException: JCE cannot authenticate the provider BC

1: In the path
jdk\jre\lib\security in the java.security file to add configuration (11 serial number to see the previous configuration serial number in the file, add 1 to the base)
security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider
2:Add the bcprov-jdk15on-1.66.jar package to jdk\jre\lib\ext