cryptor 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 3e5e25d2bdd2ae21fb0c12e6874159107d3a0ca4
4
- data.tar.gz: f088237f4bc084eddca999e037b4df858155ff78
3
+ metadata.gz: 96c1dcb3a7028017cafa9d5d94a7830c70dcc7a2
4
+ data.tar.gz: d704bbf77cfd13192fa7c084d30f97d9aaf3084a
5
5
  SHA512:
6
- metadata.gz: 87b64b2fe164d3b419f3248b1fbf2828ede7db5bc88f533ea51ad686694d25ce77d4216fe197d4ade5f017e3cdbae53d7f0473d3f6d8f8ab8b0c2e35b15d5a50
7
- data.tar.gz: b335aaa66ad842c41b49e7a35b0c72466e9aee2ca9a43b638030f2cdf59660b4d626c29e16e7b49e2737a14781aaad73f5207f136999cbb76a98ec83de03419b
6
+ metadata.gz: 00b393cf3b2122166b229ed21de3edd6885d7083a5632fdebd3966e61a7c238a71f1b5cec6c93617941d1428cc8750c7a58ec9961400fe7c0f8e0e21fa2f394f
7
+ data.tar.gz: 283a7e223cffd6f3586c0419a29fca68145870eee6e07f0856dd064eeb5ce4c4761264613cd0c3d857acef53fd52eced26406e18a2333bbe568ee5fc95b8c261
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 1.1.1 (2014-06-23)
2
+ ------------------
3
+ * Use SecureRandom instead of RbNaCl::Random with MessageEncryptor backend
4
+
1
5
  1.1.0 (2014-06-18)
2
6
  ------------------
3
7
  * Add Cryptor::EncryptedAttribute module
@@ -1,5 +1,7 @@
1
+ require 'uri'
1
2
  require 'base64'
2
3
  require 'digest/sha2'
4
+ require 'securerandom'
3
5
 
4
6
  module Cryptor
5
7
  class SymmetricEncryption
@@ -21,7 +23,7 @@ module Cryptor
21
23
  else fail ArgumentError, "invalid cipher: #{cipher}"
22
24
  end
23
25
 
24
- bytes = RbNaCl::Random.random_bytes(cipher.key_bytes)
26
+ bytes = SecureRandom.random_bytes(cipher.key_bytes)
25
27
  base64 = Cryptor::Encoding.encode(bytes)
26
28
 
27
29
  new "secret.key:///#{cipher.algorithm};#{base64}"
@@ -1,4 +1,4 @@
1
1
  # An easy-to-use library for real-world Ruby cryptography
2
2
  module Cryptor
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ordo