encrypt method

String encrypt(
  1. String message
)

Encrypt a message which can only be decrypted using the associated RSAPrivateKey

Implementation

String encrypt(String message) =>
    base64.encode(encryptData(utf8.encode(message) as Uint8List));