I agree with Griff, but if you really need to be able to restore/decrypt password,
take alook at
System.Security.Cryptography[
^] namespace. There are few encryption algorithms you can choose from, try TripleDES or AES.
Remember that you must keep encryption key safe - otherwise you have big security risk.