Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:19:12+00:00 2026-06-07T15:19:12+00:00

I have a C# application that comes with an app.config file. The application is

  • 0

I have a C# application that comes with an app.config file. The application is built on a build server and deployed to multiple users.
I’d like to encrypt the app.config, but I’m not sure about when to do so: If I do it straight after the build, won’t the encryption depend on the build server credentials? How can the application decrypt on other machines? If I do the encryption on the users machine, won’t this leave time when the app.config is unprotected?

Thanks

Edit:
I was considering using DPAPI. It uses the user’s credentials to encrypt and decrypt. This is why I think I might have a problem delivering an encrypted file to the users.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:19:15+00:00Added an answer on June 7, 2026 at 3:19 pm

    I just read the addition to your post, and I don’t think you actually need encryption at all…

    You say that you intended to use a system that would encrypt/decrypt based on the user’s credentials. That means two things:

    1. You don’t encrypt during build; you can’t use this sort of system during build, for the reasons yoy noted.
    2. You seem to be OK with the users having access to the data. In that case, you should not be using configuration at all, but you should be prompting them for login info (perhaps saving it securely afterward to reuse) or just using their Windows/domain logins.

    Either way, you don’t need to encrypt the file to protect it… you simply need to store the login info, or other config info, as user settings, rather than configuration, which is readable to all users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the app.config file of a .NET application there is a <runtime> element that
I have an application that goes like this F5 load balancer - IHS(a&b) -
We have a server application that has one module installed on a separate server,
I have this application that I have written to calculate average. It comes up
I have an application that uses ASP.NET MVC. I have it deployed to a
I have an ASP.NET web form application that on the server side I need
I have a gateway application that comes up with a login dialog and then
In my C++ application, I have some values that act as codes to represent
I have application that makes different queries with different results so the caching in
I have application that is connecting to the DB and if I enter incorrect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.