decryptPKCS1v15 static method

String decryptPKCS1v15(
  1. String ciphertext,
  2. String privateKey
)

Implementation

static String decryptPKCS1v15(String ciphertext, String privateKey) {
  var requestBuilder = model.DecryptPkcs1v15RequestObjectBuilder(
    privateKey: privateKey,
    ciphertext: ciphertext,
  );

  return RSAResponseHandlers.stringResponse(
      RSABridge.callSync("decryptPKCS1v15", requestBuilder.toBytes()));
}