I'm using pycrypto to encrypt information from a web app before persisting it to a database.
I need to be able to retrieve the information later, so hashing isn't an option.
If my server is compromised, I assume key(s) stored are also compromised.
Is there a method, perhaps using an intermediary, to encrypt data (and store keys) securely?