Closed xlei1123 closed 1 year ago
JavaFiddle only supports Java classes that are part of the Java runtime (OpenJDK)
bouncycastle
(or any other third party library) cannot be used out of the box.
You can use this library by manually integrating CheerpJ into your own HTML page, please start from our tutorial here: https://docs.leaningtech.com/cheerpj/Getting-Started
For further support please join our discord: https://discord.gg/CHeATR6E9k
i use online demo(https://javafiddle.leaningtech.com/) then replace my code, but it throw error; Here is my code ` import java.security.KeyFactory; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PublicKey; import java.security.SecureRandom; import java.security.spec.ECGenParameterSpec; import java.security.spec.X509EncodedKeySpec; import java.util.Base64; import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.springframework.util.Base64Utils;
public class SM2Util { public SM2Util() { }
} `