encryptPrivateKey static method
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()));
}