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

  • Home
  • SEARCH
  • 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 5983055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:10:31+00:00 2026-05-22T22:10:31+00:00

I want to store a System.SecureString in the registry. Is that possible? And how

  • 0

I want to store a System.SecureString in the registry. Is that possible? And how would I go about doing it?

Would my program be able to decrypt the string again when running the next time?

  • 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-22T22:10:32+00:00Added an answer on May 22, 2026 at 10:10 pm

    It’s not possible to do in encrypted form without a helper layer. It’ doesn’t natively support any form of serialization and in fact cannot even be inspected in it’s native form. To even get any information out of it you need to go through PInvoke or the SecureStringToBSTR API. Both of which will give you access to the string in unencrypted form.

    One way I could see this working is

    1. Convert the SecureString to a BSTR via SecureStringToBSTR
    2. Encrypt the BSTR
    3. Store the result in the registry

    Of course you’d need to use an encryption mechanism which was re-usable between instances of your program.

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

Sidebar

Related Questions

I have the number of images from the gallary. I want to store the
My iPhone app currently uses core data. I want to create an online database
tl;dr: Is assigning rows IDs of {unixtimestamp}{randomdigits} (such as 1308022796123456) as a BIGINT a
I am developing a windows application in .NET framework, using C#. At the time
I have an application where messages keep coming at a rate of 70K XMLs
How do I loop through a collection? I'm on a trial version of Fujitsu/Alchemy
I have to write this produce consumer application using multithreading. I wrote the following
I'm currently working with HperGraphDB 1.1 under Java SE 1.6. I stored 3 atoms
I've stored configuration of my application in the app.config, by Visual Studio I've created
I have been looking all over google to find some answers to my questions

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.