ASP.Net Web config want to encrypt one password key in it?

Posted on 2012-08-24
Last Modified: 2012-08-25
Hello all,

I have one appsetting key I want to encrypt in my web.config easiest way possible.  How can I do that?  I have done this before with a windows forms app on install package but for this app we release all the files we don't complete a package etc.

Question by:sbornstein2
    LVL 1

    Accepted Solution


    Author Comment

    It's not in a connection string or a config section just an app key.  What is Google?
    LVL 1

    Expert Comment

    maybe you you could move the appkey in a confi section and then encrypt this config section?

    What is Google? -> Good question :-) :
    LVL 20

    Expert Comment


    Author Closing Comment

    Thanks this was good the aspnet_regiis did the trick.  I am hoping to find an easier way to do a windows forms app as well.   I have done this with creating an installer class and encrypt on install think I may have to do that but was hoping something the same with my app.config for a windows forms app.  I tried using the aspnet_regiis thought it might work with Data Protection reg but doesn't seem to work.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now