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?