Skip to content

Automatic table/field encryption

I had an idea about automatically encrypting fields or even whole tables (as in, all fields in a table). They can be configured somewhere like the database.json config file quite easily. Something like:

{
  "development": {
    "encrypt": { 
      "wholetable" : true,
      "othertable" : true,
      "mytable: [ "myfield1", "myfield2" ]
    }
  }
}

The above will encrypt the whole tables called wholetable and othertable, while the table mytable will only have two fields encrypted called myfield1 and myfield2.

Edited by Jamie Carl