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?
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.
EDIT:
OK, looks like a dead end:
How To Read, Then Write To An Embedded Resource In C#