{"repo":"stas/active_record-pgcrypto","free":true,"listed":false,"github":"https://github.com/stas/active_record-pgcrypto","clone":"git clone https://github.com/stas/active_record-pgcrypto.git","description":"PostgreSQL PGCrypto support for ActiveRecord","language":"Ruby","stars":21,"topics":["activerecord","rails","postgresql","pgcrypto","encryption","ruby"],"license":"MIT","category":"security-tools","readme_excerpt":"PGCrypto for ActiveRecord 🆊 PostgreSQL PGCrypto support for ActiveRecord models. About The goal of this project is to provide a simple and efficient encryption support for your application records. Main goals: No magic please No DSLs please Less code, less maintenance Good docs and test coverage Keep it up-to-date (or at least tell people this is no longer maintained) The available features include: PostgreSQL pgcrypto native symmetric encryption using the attribute serialization API and Arel API. Logger support for sensitive data query obfuscation. A bit of history... The project was born after trying out crypt keeper and having to deal with the broken support for PostgreSQL where the stored data would be invalid for native SQL functions. I would like to thank Justin for his work, but I decided to move away from the original work for arguably subjective reasons and the critical importance of this functionality in my projects. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Usage To start using it with ActiveRecord/Rails, add this to an initializer and configure your keys: Now enable the coder for your model attributes: NOTE: In order for the encrypted data to be store the column must be of type binary . The coder provides a simple API to help you provide search support by leveraging the Arel API: Now you can use add it to your ActiveRecord::Base#where queries: Development Build the Docker image first: Now you can run th","default_branch":null,"files":null,"tree":[],"storefront":"/r/stas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stas/active_record-pgcrypto/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}