Skip to main content
1 of 2
AleksanderCH
  • 6.5k
  • 10
  • 29
  • 63

I think you're looking for column level encryption.

It allows you to encrypt specific columns in your database, in your case the cloumn "country".

Another way would be to use database encryption, which can encrypt an entire database. The main disadvantage there would be the speed, because the size of the data to encrypt / decrypt is larger than just the data in a single column.

Just be sure to store the encryption key securely. You can find more information about this topic in this post: SecuritySE - Where to store a server side encryption key.

AleksanderCH
  • 6.5k
  • 10
  • 29
  • 63