Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Encrypting web.config section [ASP.NET 2.0]

Encrypting web.config section [ASP.NET 2.0]

Scheduled Pinned Locked Moved ASP.NET
asp-netquestioncsharp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    seee sharp
    wrote on last edited by
    #1

    Hello, How can I encrypt web config section which is outside web.config file? E.g. If I use aspnet_regiis -pef "connectionStrings" "FilePath" -prov "MyProvider", It does encrypt if the section is there inside web.config, but if the section is outside web.config, how can we encrypt that. Is there some way we can achieve this? Thanks and regards, - ashish

    S 1 Reply Last reply
    0
    • S seee sharp

      Hello, How can I encrypt web config section which is outside web.config file? E.g. If I use aspnet_regiis -pef "connectionStrings" "FilePath" -prov "MyProvider", It does encrypt if the section is there inside web.config, but if the section is outside web.config, how can we encrypt that. Is there some way we can achieve this? Thanks and regards, - ashish

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Hi Ashish, Use CipherData Class for encrypting it.

      With Regards Satips

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups