I'm not referring to passwords that don't have to be used (such as passwords for other users to my site - in which case I really don't have to store them. See https://mcmap.net/q/73599/-best-way-to-store-password-in-database-closed .) so simply storing hashes is not an option.
I'm referring to storing passwords to an SQL database and a private key that the software on the shared server has to use.
I assume there's no really secure way to do it. I just want to know what's the best in this situation.
I'm trying to keep them secure from hackers (on the same web host or not). Not from others who have permission to see the files.
It's ASP.Net codebehind that will be using them.