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

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
 end

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…

Show your support

Clapping shows how much you appreciated Ryan Molecke’s story.