Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended migration steps from :single_iv_and_salt to :per_attribute_iv #370

Open
Juraci opened this issue May 21, 2020 · 1 comment
Open

Comments

@Juraci
Copy link

Juraci commented May 21, 2020

Reading through the README I saw this note:

NOTE: :per_attribute_iv_and_salt and :single_iv_and_salt modes are deprecated and will be removed in the next major release

We are trying to be proactive and move away from the deprecated modes.
Since our current configuration looks like this:

attr_encrypted :some_attribute,
key: secret_key,
algorithm: "aes-256-cbc",                                                                                                                                                                                                                                                                                                                                                                                               
mode: :single_iv_and_salt,
insecure_mode: true

What would be the steps necessary to migrate the existing records to the default and recommended mode :per_attribute_iv ?

Ruby version 2.5.5-p157
Rails version 5.2.4.2
Gem version 3.1.0

@natpicone
Copy link

Any update on this topic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants