String toBase64(String input) { List<int> bytes = utf8.encode(input); String base64Str = base64Encode(bytes); return base64Str; }