encryptString static method

Future<String> encryptString(
  1. String publicKey,
  2. String plaintext
)

Implementation

static Future<String> encryptString(
    String publicKey, String plaintext) async {
  return RSA.encryptPKCS1v15(plaintext, publicKey);
}