
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Encrypt sensitive data on your ActiveRecord models or plain ol' Ruby objects using AES.
Add this line to your application's Gemfile:
gem 'encryptor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install encryptor
Add this line within the class definition to any object, ActiveRecord model or not, you want to encrypt sensitive data:
$ include Encryptor
For any attribute you want to encrypt, add the line:
$ encrypted :attribute_name
This assumes you have two other attributes named encrypted_#{attribute_name} and #{attribute_name}_key.
It will then create #{attribute_name} and #{attribute_name}= methods that will transparently decrypt and encrypt the attribute.
Optionally, you can have two arguments that override the default name of the encrypted attribute and attribute key, like so:
$ encrypted :attribute_name, :optional_encrypted_attribute_name, :optional_attribute_key
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that the_encryptor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.