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