attr_vault 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0aa597401fd64a09739ef2bae49e733dfc685ef0
4
- data.tar.gz: d142b54cfb76ca707a3f9870e8e6e371b3dd4cd0
3
+ metadata.gz: 2d0a3de0fff55f7058208b4de5b820ff84a9f760
4
+ data.tar.gz: 48ddc0fa6e250d5c703969fc13a4418755d3bb41
5
5
  SHA512:
6
- metadata.gz: b3b314083ed69c69238ed2ec49d153bdc4a308198d4678125b761961d248862a6f5a9e28bd62b999d84d63454fd816f2bc8f2ec939181b99093114580960630c
7
- data.tar.gz: dd9845748629a782392981a759d4d2ac209dad8ee481f439284e61c92aec8ff0696c17521ad1cf066c194cd6b5cc70039ac8c270af0adaa7902be63c4f74ab26
6
+ metadata.gz: 90fbb003a54f495d1cbf0f982eac46d02fcf12965e9e7b97bda7b47e54d8bc42c840226778b55630b277cf2795e027b56cf81b5f6b7e7f45a5b8212cc6e391b5
7
+ data.tar.gz: bd252c8c14115555bf3383c53de388bb7ccd74fa173522641d3acc00c71740a112284aac0397fb755fd6cc2a8546cfbc5a40fea71f0d4145c1cd3c7312926f08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- attr_vault (0.0.7)
4
+ attr_vault (0.0.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,5 @@
1
+ require 'base64'
2
+
1
3
  module AttrVault
2
4
  module Cryptor
3
5
  def self.encrypt(value, key)
@@ -24,7 +26,9 @@ module AttrVault
24
26
 
25
27
  expected_hmac = Encryption.hmac_digest(secret.signing_key, encrypted_payload)
26
28
  unless verify_signature(expected_hmac, hmac)
27
- raise InvalidCiphertext, "Expected hmac #{expected_hmac} for this value; got #{hmac}"
29
+ raise InvalidCiphertext,
30
+ "Expected hmac #{Base64.encode64(expected_hmac)} for this value; " +
31
+ "got #{Base64.encode64(hmac)}"
28
32
  end
29
33
 
30
34
  iv, encrypted_message = encrypted_payload[0...16], encrypted_payload[16..-1]
@@ -1,3 +1,3 @@
1
1
  module AttrVault
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciek Sakrejda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2014-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec