0.0
Low commit activity in last 3 years
No release in over a year
Allows encryption and signing of requests and storing encrypted data within Mongoid documents.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Vidibus::Secure

Allows encryption and signing of requests and storing encrypted data within Mongoid documents.

This gem is part of Vidibus, an open source toolset for building distributed (video) applications.

Installation

Add gem "vidibus-secure" to your Gemfile. Then call bundle install on your console.

If you want to use Vidibus::Secure::Mongoid on your models, you should generate an initializer to set an unique encryption key by calling rails generate vidibus_secure_key, also on your console.

Usage

class MyModel
  include Mongoid::Document
  include Vidibus::Secure::Mongoid

  attr_encrypted :my_secret

Defining attr_encrypted :my_secret will create setter and getter for my_secret. You can use it like normal. But it will be stored encrypted.

Copyright

© 2010-2023 Andre Pankratz. See LICENSE for details.