c7decrypt 0.0.9 → 0.1.0

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.
Files changed (2) hide show
  1. data/lib/c7decrypt.rb +6 -34
  2. metadata +4 -4
@@ -80,39 +80,11 @@ class C7Decrypt
80
80
  TYPE_7_REGEXES.collect {|regex| string.scan(regex)}.flatten.uniq
81
81
  end
82
82
 
83
- # A short-hand version of the decrypt method
84
- # @param [String] the password hash
85
- # @return [String] the plaintest password
86
- def d(pw)
87
- decrypt(pw)
88
- end
89
-
90
- # A short-hand version of the encrypt method
91
- # @param [String] the plaintext password
92
- # @return [String] the password hash
93
- def e(pt, seed = 2)
94
- encrypt(pt, seed)
95
- end
96
-
97
- # A short-hand version of the descrypt_array method
98
- # @param [Array>String] an array of password hashes
99
- # @return [Array>String] an array of plaintext passwords
100
- def d_a(pw_array)
101
- decrypt_array(pw_array)
102
- end
103
-
104
- # A short-hand version of the descrypt_array method
105
- # @param [Array>String] an array of Cisco Type-7 Encrypted Strings
106
- # @return [Array>String] an array of Decrypted Strings
107
- def e_a(pt_array, seed = 2)
108
- encrypt_array(pt_array, seed)
109
- end
110
-
111
- # A short-hand version of the decrypt_config method
112
- # @param [String] a string of the config file path that contains Cisco Type-7 Encrypted Strings
113
- # @return [Array>String] an array of Decrypted Strings
114
- def d_c(file)
115
- decrypt_config(file)
116
- end
83
+ #Definition of short-hand methods for the lazy
84
+ alias :d :decrypt
85
+ alias :e :encrypt
86
+ alias :d_a :decrypt_array
87
+ alias :e_a :encrypt_array
88
+ alias :d_c :decrypt_config
117
89
 
118
90
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c7decrypt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 9
10
- version: 0.0.9
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan Claudius
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-05 00:00:00 Z
18
+ date: 2012-11-07 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: A library for decoding Cisco Type 7 passwords