spikex-strongbox 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.textile CHANGED
@@ -109,8 +109,8 @@ For example, encrypting a small attribute, providing only the public key for ext
109
109
  security, and Base64 encoding the encrypted data:
110
110
 
111
111
  class User < ActiveRecord::Base
112
- validates_length_of :pin_code,
113
- encrypt_with_public_key :pin_code, :is => 4
112
+ validates_length_of :pin_code, :is => 4
113
+ encrypt_with_public_key :pin_code,
114
114
  :symmetric => :never
115
115
  :base64 => true
116
116
  :public_key => File.join(RAILS_ROOT,'config','public.pem'),
@@ -56,7 +56,7 @@ module Strongbox
56
56
  return "*encrypted*" if password.blank?
57
57
 
58
58
  unless @private_key
59
- raise StrongboxError.new("#{@instance.class} model does not have public key_file")
59
+ raise StrongboxError.new("#{@instance.class} model does not have private key_file")
60
60
  end
61
61
 
62
62
  ciphertext = @instance.read_attribute(@name)
data/lib/strongbox.rb CHANGED
@@ -5,7 +5,7 @@ require 'strongbox/lock'
5
5
 
6
6
  module Strongbox
7
7
 
8
- VERSION = "0.1.2"
8
+ VERSION = "0.1.3"
9
9
 
10
10
  RSA_PKCS1_PADDING = OpenSSL::PKey::RSA::PKCS1_PADDING
11
11
  RSA_SSLV23_PADDING = OpenSSL::PKey::RSA::SSLV23_PADDING
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spikex-strongbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spike Ilacqua