pwdhash 0.3.5 → 0.3.6
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 +4 -4
- data/bin/pwdhash2 +1 -3
- data/lib/pwdhash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cbc3b1ff7c07859f09bfcadaa6655c899352dd614f8cc7423c685ea5d243a12
|
4
|
+
data.tar.gz: a09d56befeb606465ae3bf9f5523b5d6de815b0bf5aaa678e85e2dbd8da7ec53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 643e732a389d4b2e272988017b8204a24abe54ad51188722dc809b4373635945938bdfe92b855526d0b84d21913c1b8a49182510006036ebf00e74e5235a436a
|
7
|
+
data.tar.gz: c13a5b3e322f7591e0e1d855feb6f25d7e5197396b73b21d8c67d685dd998ef4ec8877b6c348f549dfbf4c58e394c7eb9337db045bdfaa8e9fe75f6f91783445
|
data/bin/pwdhash2
CHANGED
@@ -8,8 +8,6 @@ require 'pwdhash/pwdhash'
|
|
8
8
|
require 'pwdhash/extract_domain'
|
9
9
|
require 'pwdhash/version'
|
10
10
|
|
11
|
-
require 'backports'
|
12
|
-
|
13
11
|
def usage
|
14
12
|
puts "pwdhash.rb #{PwdHash::VERSION} - Chris Yuen, Chris Roos (2012) Eric Duminil (2019)"
|
15
13
|
puts "Usage: pwdhash2 URI [SALT] [ITERATIONS]"
|
@@ -30,7 +28,7 @@ salt = ARGV[1] || ENV['PWDHASH2_SALT']
|
|
30
28
|
iterations = (ARGV[2] || ENV['PWDHASH2_ITERATIONS'] || 50_000).to_i
|
31
29
|
|
32
30
|
hl = HighLine.new($stdin, $stderr)
|
33
|
-
hl.say("WARNING: Empty salt!") if salt.empty?
|
31
|
+
hl.say("WARNING: Empty salt!") if salt.nil? or salt.empty?
|
34
32
|
password = hl.ask("Password for #{realm} (salt = '#{salt}', iterations = #{iterations}): ") {|q| q.echo = false}
|
35
33
|
|
36
34
|
print get_hashed_password2(password, realm, salt, iterations)
|
data/lib/pwdhash/version.rb
CHANGED