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.
- data/lib/strongbox/lock.rb +5 -1
- metadata +1 -1
data/lib/strongbox/lock.rb
CHANGED
@@ -78,7 +78,11 @@ module Strongbox
|
|
78
78
|
unless @symmetric == :only
|
79
79
|
encrypted_key = Base64.encode64(encrypted_key)
|
80
80
|
end
|
81
|
-
|
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
|