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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:05:41+00:00 2026-06-09T15:05:41+00:00

I am working on a project to keep all my passwords in safe. I

  • 0

I am working on a project to keep all my passwords in safe. I don’t want to use another file to keep the passwords, I want it to be stand-alone. Thus, on runtime (let’s say when I press apply button or on FormClosing event etc…) I need to edit the resources that will be keeping encrypted passwords. Is it possible and if so how? If not possible, what are the best alternatives? Btw, I don’t want to use registry either since it would kill portability.

Thanks in advance!

Edit: By resources I mean embeded ones.

Edit: After Jason’s answer, I need to change the question a little bit; is there any way to write anything to a running executable itself?

  • 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-06-09T15:05:43+00:00Added an answer on June 9, 2026 at 3:05 pm

    This article shows how to access an embedded resources inside an assembly using a stream. Could give you enough of a start on how to edit the passwords resource that you mention.

    EDIT;
    Ah, even better:

    How to read embedded resource text file

    EDIT:

    Just use a StreamWriter e.g.

    using (Stream stream = Assembly.GetExecutingAssembly()
                                   .GetManifestResourceStream("file1.txt"))
    using (StreamWriter sw = new StreamWriter(stream))
    {
        sw.Write("This is a test");
    }
    

    EDIT:

    OK, looks like a dead end:

    How To Read, Then Write To An Embedded Resource In C#

    Embedded resources are compiled into your assembly, you can’t edit
    them.

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

Sidebar

Related Questions

I am working on a project where we want to keep a history of
I am working on a project where we want to keep a history of
I am working on the project which uses NHibernate. I don't keep session opened.
While working on an Xcode project i keep getting the spinning wheel while switching
I'm trying to recompile a project I've been working on and I keep getting
I have a working project that Im amending, it crashes after trying to use
While working a project tonight, I ended up using one .js resource file for
I am working on a project that creates two processes and I want to
While setting up my project and working to keep apps non-dependent, I've hit a
I'm working on a couple of different Joomla add-ons but want to keep them

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.