It’s possible you’re missing an iv column on your encrypted_fields table.
Joe Kurleto

I used the code straight from your table creation script, in my db migration:

create_table :encrypted_fields do |t|
 t.string :encrypted_blob
 t.string :encrypted_blob_iv
 t.string :encrypted_blob_salt
 t.integer :data_encryption_key_id

So, I do have a field “encrypted_blob_iv” in the table ‘encrypted_fields’.

Maybe the field name should be “encrypted_iv”… I’ll try that…

Like what you read? Give Ryan Molecke a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.