encryptPrivateKey static method

String encryptPrivateKey(
  1. String privateKey,
  2. String password,
  3. PEMCipher cipher
)

Implementation

static String encryptPrivateKey(
    String privateKey, String password, PEMCipher cipher) {
  var requestBuilder = model.EncryptPrivateKeyRequestObjectBuilder(
    privateKey: privateKey,
    password: password,
    cipher: model.Pemcipher.values[cipher.index],
  );

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