Skip to content

Commit

Permalink
Merge pull request #374 from uclibs/bug/sensitive_data
Browse files Browse the repository at this point in the history
Updates secret_key_base decryption for sensitive information field.
  • Loading branch information
Janell-Huyck authored Jul 12, 2024
2 parents bb953da + d034e6d commit 51f7fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/software_records_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def decrypt(text)
salt, data = text.split '$$'

len = ActiveSupport::MessageEncryptor.key_len
key = ActiveSupport::KeyGenerator.new(Rails.application.secrets.secret_key_base).generate_key salt, len
key = ActiveSupport::KeyGenerator.new(Rails.application.secret_key_base).generate_key salt, len
crypt = ActiveSupport::MessageEncryptor.new key
crypt.decrypt_and_verify data
end
Expand Down

0 comments on commit 51f7fef

Please sign in to comment.