MYSQL with PII Security Encryption

How to enable Mysql PII Security for some rows at DB level.

I heard it can be implemented without using Application  calls & can be enabled directly at the DB level.
Siva PrasadAdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
There is no encryption of that sort in MySQL.  Your options are:

1) Encrypt information in your code.  Having the application do the encryption is generally safer and more efficient.  For example, you don't need to transfer the encryption key or target data.

2) Use MySQL's encryption functions to encrypt data as needed.  While this is certainly possible, I would argue it to be less efficient than app-based encryption.  Also, it stores the key with the lock - never a good security scenario.  See http://thinkdiff.net/mysql/encrypt-mysql-data-using-aes-techniques for a description of how this is done.

One other possibility is to encrypt the file system, but that does not really protect against software access, only physical access to the drive.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.