Curated list of episodes, bundled to help you on your learning path!
Videos of tech, infrastructure, hardware and software which non-instructional by nature.
Articles around software and tutorials.
Show your love and support while looking fancy.
Got a question or want to chat about a topic? Let's talk!
thanks a lot for the great series, especially for this episode, which lead me to trying out this gem.
With my tests, I am running into problems. I am trying out to encrypt the safeword of my user model.
class User < ApplicationRecord
The new standard of attr_encrypted needs an iv_column for the encrypted field. So my fixtures like:
password_digest: <%= User.digest('password') %>
fail with a "table "user" has no column named "safeword"" error.
I would like to replace "safeword" with
encrypted_safeword: <%= User.encrypt_safeword('safeword', key: Rails.application.secrets.attr_encrypted_key)
But how to I set the required "encrypted_safeword_iv" field? How do I calculate the iv value?
Any help is very appreciated!
Thanks a lot!