Possible Duplicate:
Preferred Method of Storing Passwords In Database
My problem is similar to this one discussed here: Best way to store password in database
I need to store passwords of external FTP logins in the database which will be used by the application. The solution of the linked topic is not applicable because it's hashing the password.
I'm using C# and connecting to a SQL Server 2008. Does someone has an example solution? I think I just have to encrypt the password, store it in ecrypted form and if the application wants to use the password -> decrypt.