I have a spring -mvc stack that stores data in MySQL. Some of this data needs to be protected, so I think I should encrypt it. Since I may need to use this data later (credit cards, SSN, others), so I will need to decrypt it. I think this excludes hashing.
There seem to be several approaches, including Java crypto packages. Shiro seems to have good features like Blowfish-x. And I see that MySQL supports encryption / decryption. I'm not sure I will use MySQL in the long run.
My question is: what is the best approach for a web application Java application to securely store some user data?
source share