public static async Task SaveJournal(string filePath, Journal journalToSave, string password) { var serialized = JsonConvert.SerializeObject(journalToSave); var encrypted = AESThenHMAC.SimpleEncryptWithPassword(serialized, password); await File.WriteAllTextAsync(filePath, encrypted); }