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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:18:40+00:00 2026-05-23T01:18:40+00:00

anyone from MS or some MS MVP? Any improvements for encrypting specific custom section

  • 0

anyone from MS or some MS MVP? Any improvements for encrypting specific custom section in web.config besides using hack like in Using ASPNet_Regiis to encrypt custom configuration section – can you do it?

Danger of being hacked is very high these days, so be able encrypt config is something which can certainly help improve security.

Anyone info, update welcome.

Thanks, X.

  • 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-23T01:18:41+00:00Added an answer on May 23, 2026 at 1:18 am

    I’ve faced this problem myself today and really struggled to get anywhere with the command line tool aspnet_regiis.exe

    I think my main problem is that I had built myself a custom section group, not just a section so the command line tool didn’t really want to play ball.

    Instead I wrote a webpage with access restricted to myself with code similar to the following

    Private Sub Encrypt()
        Dim cfg As Configuration = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath)
        Dim grp As ConfigurationSectionGroup = cfg.GetSectionGroup("MySectionGroup")
        Dim sect As ConfigurationSection
        For r As Integer = 0 To grp.Sections.Count - 1
            sect = grp.Sections(r)
            If Not sect.SectionInformation.IsProtected Then
                sect.SectionInformation.ProtectSection("RsaProtectedConfigurationProvider")
            End If
        Next
        cfg.Save()
    End Sub
    

    Hope this helps or at least points you in the right direction 🙂 Decrypting is basically the opposite of above (.UnprotectSection)

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

Sidebar

Related Questions

I'm looking for some feedback from anyone that has had a chance to spend
Does anyone have some code that will take a TimeZoneInfo field from .NET and
Can anyone give me some idea about uploading data from excel to access database
I need to migrate data from a Plone-based portal to Liferay. Has anyone some
I would like some advice from anyone experienced with implementing something like pessimistic locking
I'm currently trying to consume a list of strings from some XML using Apache
I've got a simple little web app that's aggregating a couple views from some
We have to store data from some flat files that is created using IBM's
I'm looking for some advice from anyone who has experience writing addons for PowerPoint
How can I extract the domain name from some text using PHP? For example,

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.