router_crypt 0.4.0 → 0.4.1

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
- SHA1:
3
- metadata.gz: 27c72c9db801e1733ea262975a6057782fc5351b
4
- data.tar.gz: 60f4d105d9b314e5a8991321bd7a83f081a6590a
2
+ SHA256:
3
+ metadata.gz: 96629124186c761525a9267d7bff860b4628b90fb84a074b6b5a713923cb9095
4
+ data.tar.gz: be00f8179dd46b5ca2b33847b11af1ffe6094b40aa8de2ff652daed20d7319e2
5
5
  SHA512:
6
- metadata.gz: 98c8aac4fa9fbc0e7de60ab4f6c67480dc84db69f050f38b67ac1ea11e47bf4d7cbf25d0f2d25a702be35bc653554605f858ad9eb56d6c20c74764450d0c108b
7
- data.tar.gz: d78ee283d8a74445ffb368b9a9fcdfab392bddecd830c2bf2d06f32a399f60409f288045a9a1ab3e1611c07533d884701e64354c2a850e8bb217fd000df33378
6
+ metadata.gz: 2c332f54ce0dc461603fea72422a073fa086ba1b522b9e046b8bc725cfc74abf889221db34c821dbf81908d3a84fcf018b4caf454154a8a1f4a14264abddd11f
7
+ data.tar.gz: 6af700d3979f6bf6f813023ced2cf35f0c64f1e64460c4104efdbc67f306375f844aacecef33125eded1d8ce54120b28166b15bd7cedf74e96c94e8aa7eb64b0
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- router_crypt (0.4.0)
4
+ router_crypt (0.4.1)
5
5
  slop (~> 4.4)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- diff-lcs (1.2.5)
11
- rake (10.5.0)
12
- rspec (3.5.0)
13
- rspec-core (~> 3.5.0)
14
- rspec-expectations (~> 3.5.0)
15
- rspec-mocks (~> 3.5.0)
16
- rspec-core (3.5.4)
17
- rspec-support (~> 3.5.0)
18
- rspec-expectations (3.5.0)
10
+ diff-lcs (1.3)
11
+ rake (12.3.1)
12
+ rspec (3.7.0)
13
+ rspec-core (~> 3.7.0)
14
+ rspec-expectations (~> 3.7.0)
15
+ rspec-mocks (~> 3.7.0)
16
+ rspec-core (3.7.1)
17
+ rspec-support (~> 3.7.0)
18
+ rspec-expectations (3.7.0)
19
19
  diff-lcs (>= 1.2.0, < 2.0)
20
- rspec-support (~> 3.5.0)
21
- rspec-mocks (3.5.0)
20
+ rspec-support (~> 3.7.0)
21
+ rspec-mocks (3.7.0)
22
22
  diff-lcs (>= 1.2.0, < 2.0)
23
- rspec-support (~> 3.5.0)
24
- rspec-support (3.5.0)
25
- slop (4.4.1)
23
+ rspec-support (~> 3.7.0)
24
+ rspec-support (3.7.1)
25
+ slop (4.6.2)
26
26
 
27
27
  PLATFORMS
28
28
  ruby
@@ -33,4 +33,4 @@ DEPENDENCIES
33
33
  rspec
34
34
 
35
35
  BUNDLED WITH
36
- 1.11.2
36
+ 1.16.1
data/README.md CHANGED
@@ -3,7 +3,7 @@ router_crypt
3
3
 
4
4
  About
5
5
  -----
6
- Ruby library and executable to (de)crypt various router vendors (JunOS, IOS, NXOS) password. As of now, only decrypt is implemented
6
+ Ruby library and executable to (de)crypt various router vendors (JunOS, IOS, NXOS) password.
7
7
 
8
8
 
9
9
  Installation
@@ -18,11 +18,13 @@ rtrcrypt [encrypted password]
18
18
 
19
19
  Library usage
20
20
  -------------
21
+ ```
21
22
  require 'router_crypt'
22
23
 
23
24
  RouterCrypt::IOS.decrypt ios_pw
24
25
  RouterCrypt::NXOS.decrypt nxos_pw
25
26
  RouterCrypt::JunOS.decrypt junos_pw
27
+ ```
26
28
 
27
29
 
28
30
  Thanks
@@ -26,7 +26,7 @@ class RouterCrypt::JunOS
26
26
  private
27
27
 
28
28
  def nibble str, len
29
- nib, str[0..len-1] = str[0..len-1], ''
29
+ nib, str[0,len] = str[0,len], ''
30
30
  nib.size == len or raise InvalidPW, 'Insufficent amont of characters'
31
31
  nib
32
32
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'router_crypt'
3
- s.version = '0.4.0'
3
+ s.version = '0.4.1'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = [ 'Saku Ytti' ]
6
6
  s.email = %w( saku@ytti.fi )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: router_crypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-22 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: 1.3.6
104
104
  requirements: []
105
105
  rubyforge_project: router_crypt
106
- rubygems_version: 2.5.2
106
+ rubygems_version: 2.7.6
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Crypt library for JunOS/IOS/NX-OS passwords