rjharmon-strongbox 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/strongbox/lock.rb +5 -1
  2. metadata +1 -1
@@ -78,7 +78,11 @@ module Strongbox
78
78
  unless @symmetric == :only
79
79
  encrypted_key = Base64.encode64(encrypted_key)
80
80
  end
81
- encrypted_iv = Base64.encode64(encrypted_iv)
81
+ if @encrypt_iv
82
+ encrypted_iv = Base64.encode64(encrypted_iv)
83
+ else
84
+ symmetric_iv = Base64.encode64(symmetric_iv)
85
+ end
82
86
  end
83
87
  unless @symmetric == :only
84
88
  @instance[@symmetric_key] = encrypted_key
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjharmon-strongbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spike Ilacqua