for a legacy project, I need to encrypt/decrypt emails by calling a function in the database(oracle) from the java application.
However, for encryption or decryption I need to pass the key, and I am thinking how to secury store the key. I dont want they key stored in the database but in the application somehow.
I want to store it somewhere in tomcat, but I am not very familiar with tomcat. I found this post: Where to place and how to read configuration resource files in servlet based application?
What do you think, where should I store it?