encryptThenEncode method

Future<ScpJson> encryptThenEncode(
  1. String key,
  2. String message
)

Implementation

Future<ScpJson> encryptThenEncode(String key, String message) async {
  EncryptedPayload encryptedPayload = await encryptMessage(key, message);
  return ScpJson(
    key: base64Encode(utf8.encode(key)),
    encryptedPayload: encryptedPayload,
  );
}