action_encrypt 0.1.0 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99186586bdc0a439f72fded1d9a8794934e4fa0097199a87246b4f772614d3f3
4
- data.tar.gz: 6c8a351353df7358a06b3c526fdceb1f32f1861a3f6f164a3d3affd8091f1c1f
3
+ metadata.gz: 4846f11674bd318a064d4954d612a33bb4eee3a9ecba96472333889b27063a97
4
+ data.tar.gz: f73a0307327d54fd56de0b2b2b585b2d31dd5f94e9f536f2ef0718f7e223e2d5
5
5
  SHA512:
6
- metadata.gz: 565df08df3127620e009755c16163d7628142d93e607f2917ccb6ade143c4b646a56768d705efc24bbf2ddbd962c172d145ae2b77c6be69514b28dd464e67b90
7
- data.tar.gz: 4b8e048b55ab3a59cd87e6499ee9e6f0db1ff56d1b22c5445670a52559b3ddd0340042812a5299060aa9705e3c1639397c34baa5f5f0cdceaebbc0f1177c3959
6
+ metadata.gz: c326bbf69c0365c39a1d8109903115b34726dff1c628eda207022b1da3b72c26580ab73f82aa5a2f4e1e6869b2b806402462fa08b530c821cd8ad0b55f3b9f3d
7
+ data.tar.gz: bf5013ec2d414675e37f2ae803711fdf6ffd129ff8cc0a626dcd9322c39eac41680bc38b24428965876a64c8229450089486f36ea40fc690f3eebdda2bcb80ee
@@ -0,0 +1,6 @@
1
+ class UniqueIndexIvColumns < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_index :action_encrypt_data_encryption_keys, :encrypted_key_iv, unique: true
4
+ add_index :action_encrypt_encrypted_fields, :encrypted_blob_iv, unique: true
5
+ end
6
+ end
@@ -6,6 +6,8 @@ module ActionEncrypt
6
6
 
7
7
  class_methods do
8
8
  def search_encrypted(name, opts = {})
9
+ require 'blind_index'
10
+
9
11
  blind_index :"#{name}", key: [Rails.application.credentials.blind_index_key].pack("H*")
10
12
 
11
13
  before_validation :"compute_#{name}_bidx"
@@ -1,3 +1,3 @@
1
1
  module ActionEncrypt
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_encrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Van Der Beek
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-11 00:00:00.000000000 Z
11
+ date: 2021-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '5.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '5.2'
27
27
  - !ruby/object:Gem::Dependency
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - earlynovrock@gmail.com
72
72
  executables: []
@@ -83,16 +83,17 @@ files:
83
83
  - db/migrate/20190404115831_create_action_encrypt_encrypted_fields.rb
84
84
  - db/migrate/20190404121918_create_action_encrypt_data_encryption_keys.rb
85
85
  - db/migrate/20190404122056_add_data_encryption_key_to_action_encrypt_encrypted_fields.rb
86
+ - db/migrate/20190628112807_unique_index_iv_columns.rb
86
87
  - lib/action_encrypt.rb
87
88
  - lib/action_encrypt/attribute.rb
88
89
  - lib/action_encrypt/engine.rb
89
90
  - lib/action_encrypt/version.rb
90
91
  - lib/tasks/action_encrypt_tasks.rake
91
- homepage:
92
+ homepage: https://github.com/dvanderbeek/action_encrypt
92
93
  licenses:
93
94
  - MIT
94
95
  metadata: {}
95
- post_install_message:
96
+ post_install_message:
96
97
  rdoc_options: []
97
98
  require_paths:
98
99
  - lib
@@ -107,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.0.1
111
- signing_key:
111
+ rubygems_version: 3.0.6
112
+ signing_key:
112
113
  specification_version: 4
113
114
  summary: Easily add encrypted fields to your models.
114
115
  test_files: []