├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .rspec ├── .rubocop.yml ├── Appraisals ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── Gemfile ├── Guardfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── active_record_encryption.gemspec ├── docker-compose.yml ├── gemfiles ├── 7.0_stable.gemfile ├── 7.1_stable.gemfile ├── 7.2_stable.gemfile └── 8.0_stable.gemfile ├── lib ├── active_record_encryption.rb └── active_record_encryption │ ├── binary.rb │ ├── encrypted_attribute.rb │ ├── encryptor.rb │ ├── encryptor │ ├── active_support.rb │ ├── aes_256_cbc.rb │ ├── base.rb │ ├── raw.rb │ └── registry.rb │ ├── exceptions.rb │ ├── quoter.rb │ ├── type.rb │ ├── type │ └── binary.rb │ └── version.rb └── spec ├── active_record_encryption ├── binary_spec.rb ├── encrypted_attribute_spec.rb ├── encryptor │ ├── active_support_spec.rb │ ├── aes_256_cbc_spec.rb │ ├── base_spec.rb │ └── raw_spec.rb ├── encryptor_spec.rb ├── quoter_spec.rb └── type_spec.rb ├── active_record_encryption_spec.rb ├── spec_helper.rb └── support ├── activerecord.rb ├── activerecord_helper.rb ├── activerecord_model.rb ├── activerecord_skip_examples.rb ├── activerecord_stub_model.rb ├── activesupport_test_case.rb ├── activesupport_time_helpers.rb └── in_time_zone.rb /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | --require spec_helper 4 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /Appraisals: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/Appraisals -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/Gemfile -------------------------------------------------------------------------------- /Guardfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/Guardfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/Rakefile -------------------------------------------------------------------------------- /active_record_encryption.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/active_record_encryption.gemspec -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /gemfiles/7.0_stable.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/gemfiles/7.0_stable.gemfile -------------------------------------------------------------------------------- /gemfiles/7.1_stable.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/gemfiles/7.1_stable.gemfile -------------------------------------------------------------------------------- /gemfiles/7.2_stable.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/gemfiles/7.2_stable.gemfile -------------------------------------------------------------------------------- /gemfiles/8.0_stable.gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/gemfiles/8.0_stable.gemfile -------------------------------------------------------------------------------- /lib/active_record_encryption.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/binary.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/binary.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encrypted_attribute.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encrypted_attribute.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor/active_support.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor/active_support.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor/aes_256_cbc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor/aes_256_cbc.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor/base.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor/base.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor/raw.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor/raw.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/encryptor/registry.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/encryptor/registry.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/exceptions.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/exceptions.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/quoter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/quoter.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/type.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/type.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/type/binary.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/lib/active_record_encryption/type/binary.rb -------------------------------------------------------------------------------- /lib/active_record_encryption/version.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | module ActiveRecordEncryption 4 | VERSION = '1.0.0' 5 | end 6 | -------------------------------------------------------------------------------- /spec/active_record_encryption/binary_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/binary_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encrypted_attribute_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encrypted_attribute_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encryptor/active_support_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encryptor/active_support_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encryptor/aes_256_cbc_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encryptor/aes_256_cbc_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encryptor/base_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encryptor/base_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encryptor/raw_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encryptor/raw_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/encryptor_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/encryptor_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/quoter_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/quoter_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption/type_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption/type_spec.rb -------------------------------------------------------------------------------- /spec/active_record_encryption_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/active_record_encryption_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/activerecord.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activerecord.rb -------------------------------------------------------------------------------- /spec/support/activerecord_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activerecord_helper.rb -------------------------------------------------------------------------------- /spec/support/activerecord_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activerecord_model.rb -------------------------------------------------------------------------------- /spec/support/activerecord_skip_examples.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activerecord_skip_examples.rb -------------------------------------------------------------------------------- /spec/support/activerecord_stub_model.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activerecord_stub_model.rb -------------------------------------------------------------------------------- /spec/support/activesupport_test_case.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activesupport_test_case.rb -------------------------------------------------------------------------------- /spec/support/activesupport_time_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/activesupport_time_helpers.rb -------------------------------------------------------------------------------- /spec/support/in_time_zone.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alpaca-tc/active_record_encryption/HEAD/spec/support/in_time_zone.rb --------------------------------------------------------------------------------