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 963055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:36:48+00:00 2026-05-16T01:36:48+00:00

I have an app.config file that I need to distribute with my application. It

  • 0

I have an app.config file that I need to distribute with my application. It was created because of a Service Reference to an ASMX web service I added.

It isn’t a huge deal if this file is modified/viewed, but I still would like to make it secure. I already check the hash of the config and make sure it is valid, but I still want an added layer of protection.

Here is my config: http://pastie.org/private/zjdzadnfwrjvwkmlbdsqw

So is there anything in there that I can encrypt or anything?

  • 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-05-16T01:36:48+00:00Added an answer on May 16, 2026 at 1:36 am

    You cannot encrypt the entire <system.serviceModel> – it’s a configuration section group, which contains configuration sections.

    The aspnet_regiis will only encrypt configuration sections – so you need to selectively encrypt those parts you need, like this:

    cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
    aspnet_regiis.exe -pef "system.serviceModel/bindings" .
    aspnet_regiis.exe -pef "system.serviceModel/services" .
    

    etc.

    With this, you can encrypt what you need easily – what isn’t too important, can be left in clear text.

    Word of warning: since it’s aspnet_regiis, it expects to be dealing with a web.config file – copy your app.config to a location and call it web.config, encrypt your sections, and copy those encrypted sections back into your own app.config.

    Or write your own config section encrypter/decrypter – it’s really just a few lines of code! Or use mine – I wrote a small ConfigSectionCrypt utility, come grab it off my OneDrive – with full source (C# – .NET 3.5 – Visual Studio 2008). It allows you to encrypt and decrypt sections from any config file – just specify the file name on the command line.

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

Sidebar

Related Questions

I have a console application that uses an app.config file however I can't figure
I have a java app that uses log4j. Config: log4j.rootLogger=info, file log4j.appender.file=org.apache.log4j.DailyRollingFileAppender log4j.appender.file.File=${user.home}/logs/app.log log4j.appender.file.layout=org.apache.log4j.PatternLayout
I have created a library which reads the app.config file and gets the type
I have a windows service where the app.config file and the log4net.config files are
I have defined two endpoints in my App.Config file as <system.serviceModel> <services> <service name=HostDirectAddress.ITestService
I have an app.Config that was created on the dev machine running Windows 7.
I have an application config file that looks something like this: database: type: [db-type]
I have a dirt simple web service hosted in IIS that I need to
I have an App.config file in my project that gets copied to NameOfExe.exe.config at
I have a trivial C# windows application with an app.config file. I want to

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.