Skip to content

Commit

Permalink
use sha256 on rails key_derivation_salt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBTurchyn committed Jul 9, 2023
1 parent 15523d8 commit 95e4bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
config.active_record.encryption = {
primary_key: encryption_secret.first(32),
deterministic_key: encryption_secret.last(32),
key_derivation_salt: encryption_secret
key_derivation_salt: Digest::SHA256.hexdigest(encryption_secret)
}

# Do not dump schema after migrations.
Expand Down

0 comments on commit 95e4bf9

Please sign in to comment.