I need to store a 3rd-party password in our configuration database, so the user can save their login information for a web service that can be accessed through our server.
I need to pass the password to the web service, so I can't just hash the password and store the hash. I need to be able to get to the actual password for sending to the service.
For security reasons, I'd like to encrypt the password that we're storing in the database. Everything I look up regarding encrypting passwords seems to say "hash it, don't encrypt it!" but I don't think that applies in this case.
I am wondering if it's better to handle the encryption/decryption in the VB.NET code or use SQL Server to accomplish it (from what I see here, it's at least possible to do it in SQL, but I'm not sure if that makes sense. I need to research that more to find out what the deployment issues would be like).