New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple_encryptable

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_encryptable

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Build Status

SimpleEncryptable

SimpleEncryptable is based on Rails encryption mechanisms, it is streamline without all the bells and whistles, only the esentials. Heavilly inspired by Pawel Urbanek.

Installation

Add SimpleEncryptable application's Gemfile:

gem 'simple_encryptable'

or

gem 'simple_encryptable', '~> 0.1.0'

And then execute:

$ bundle

Or install it yourself as:

$ gem install simple_encryptable

Usage

With ActiveRecord objects, the database must have encrypted_[attribute] column(s). With PORO objects, attr_accessor [attribute] must be provided.

You must include SimpleEncryptable, it is not dynamically loaded into all ActiveRecord objects. Providing secret and salt tokens is crutial. Ideally store them in an .env file or using Rails credentials mechanism.

  class User
    include SimpleEncryptable

    attr_encryptable :secret_attribute, :another_secret_attribute, secret: 'foo', salt: 'bar'
  end

Contributing

  1. Fork it
  2. Clone the project git clone git@github.com:[YOUR GITHUB USERNAME]/simple_encryptable.git
  3. cd simple_encryptable
  4. Install dependencies, bundle install
  5. Create your feature branch git checkout -b my-new-feature
  6. Write your feature, along with tests for your changes
  7. Run the tests rake test, all must be green
  8. Commit your changes git commit -am 'Added some feature'
  9. Push to the branch git push origin my-new-feature
  10. Create new Pull Request

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 21 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc