Skip to content

Commit 1aab90a

Browse files
committed
add BouncyCastleProvider
1 parent 901fed1 commit 1aab90a

File tree

1 file changed

+4
-1
lines changed
  • springboot-starter/src/main/java/com/codingapi/springboot/framework/crypto

1 file changed

+4
-1
lines changed

springboot-starter/src/main/java/com/codingapi/springboot/framework/crypto/AESUtils.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
package com.codingapi.springboot.framework.crypto;
22

3+
import org.bouncycastle.jce.provider.BouncyCastleProvider;
4+
35
import java.io.IOException;
6+
import java.security.Security;
47

58
public class AESUtils {
69

710
private AESUtils() {
8-
11+
Security.addProvider(new BouncyCastleProvider());
912
}
1013

1114
private final static AESUtils instance = new AESUtils();

0 commit comments

Comments
 (0)