咕泡云原生架構(gòu)技術(shù)紅利班
?public static String decryptPKSC1(String data, String privateKeyStr) {
? ? ? ?try {
? ? ? ? ? ?Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
? ? ? ? ? ?Cipher cipher = Cipher.getInstance("RSA/None/PKCS1Padding", "BC");
? ? ? ? ? ?RSAPrivateKey privateKey = getPrivateKeyPKSC1(privateKeyStr);
標(biāo)簽: