public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return(SecureUtils.Protect(value.ToString())); }
private async void saveButton_Click(object sender, RoutedEventArgs e) { cache.Settings["git_password"] = SecureUtils.Protect(passwordTextBox.Password); await Task.Run(() => settingsService.WriteSettingsToFile()); }