rotp 3.0.0 → 3.0.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: 17c7287512c5437d21d34d9d0eae73f42cce0501
4
- data.tar.gz: a2b8c0c4133681b23af7a30c34f9e6d0386e1f65
3
+ metadata.gz: 8a81c9c19f20358ab16d62429767d58a02713f0a
4
+ data.tar.gz: 33806577d34a4da96b99424a5feb9a16f229657f
5
5
  SHA512:
6
- metadata.gz: dc396f7711a415619afd44e5b2d1eba90dada73990a4531fb5bede1dc0d7c8c620e745be388e85ad34d290878a14e92e194ed9379ff0226964cac97070eada7c
7
- data.tar.gz: 9ed66cff8f1b90b54252842131d1f2c046d87a1082381470b8ea0c7b2e3cda890039967b1b458d771ca3e5f4f7f5a3892fdaff6f408b8618ff357405e9727b31
6
+ metadata.gz: 61867eea08079d4478b0394209a6a076c1a1c518ac0365735ec71bacc3aa8b716f88bb591af19f8c5566122764ca581f3ce7dd041b53299a170edb7275621caf
7
+ data.tar.gz: c980bbb7d215597f050cf7318493fdf43dba6027771f9c233330b08b4e1909352d10456078c4738f8a321245e6e7a02d63cf38cd0b3a95c409a19cde7a96569c
@@ -1,5 +1,9 @@
1
1
  ### Changelog
2
2
 
3
+ #### 3.0.1
4
+
5
+ - Use SecureRandom. See mdp/rotp/pull/52
6
+
3
7
  #### 3.0.0
4
8
 
5
9
  - Provisioning URL includes issuer label per RFC 5234 See mdp/rotp/pull/51
@@ -1,6 +1,6 @@
1
1
  require 'cgi'
2
2
  require 'uri'
3
- require 'openssl'
3
+ require 'securerandom'
4
4
  require 'rotp/base32'
5
5
  require 'rotp/otp'
6
6
  require 'rotp/hotp'
@@ -15,7 +15,7 @@ module ROTP
15
15
 
16
16
  def random_base32(length=16)
17
17
  b32 = String.new
18
- OpenSSL::Random.random_bytes(length).each_byte do |b|
18
+ SecureRandom.random_bytes(length).each_byte do |b|
19
19
  b32 << CHARS[b % 32]
20
20
  end
21
21
  b32
@@ -1,3 +1,3 @@
1
1
  module ROTP
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotp
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Percival
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard-rspec