We are behind in ensuring compliance to the new GDPR that has just come in to effect and I am currently looking at encrypting the data stored in our database for our ecommerce website. I realise that encryption is not mandatory, but nether the less I think it would be a useful added security.
My question is: Are there any advantages/disadvantages to encrypting the entire database at rest, as well as storing values using my own encryption? Is this something you would do, or would you consider just one of these methods to be enough to provide good security for personal data?
My theory is that encrypting the values as they are stored and retrieved using our PHP scripts will protect us if anyone somehow gets a hold of our database back ups - and that the table encryption will protect us should someone gain access to the database itself.
I have been looking into this: Innodb Tablespace Encryption
This should serve to encrypt the entire database table(s). I would then look to manually encrypt any personal data sent to the database using PHP's openssl_encrypt function.
Any advice here would be appreciated. Many thanks in advance!