Decrypts a file with a topic AES key. This is not available in CircleService, but is in CoreL2.
The Circle ID, the Topic ID, and the inner and outer file paths.
Whether the action was successful or not.
public async Task<DecryptFileReply> DecryptFile(DecryptFileRequest request)
public class DecryptFileRequest
{
public string CircleId;
public string TopicId;
public string InFilePath;
public string OutFilePath;
}
public class DecryptFileReply
{
public ReturnStatus Status;
}
public void DecryptFile(string circleId, string topicId, string inFile, string outfile)
{
DecryptFileRequest request = new DecryptFileRequest()
{ CircleId = circleId, TopicId = topicId, InFilePath = inFile, OutFilePath = outfile};
DecryptFileReply reply = _circle.DecryptFile(request);
if (reply.Status.Result)
{
Console.WriteLine(reply.Status.Message);
}
else
Console.WriteLine(reply.Status.Message);
}