pwned_passwords 0.0.4 → 0.0.5
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/lib/pwned_passwords.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6c0bd9ec5d722fe50c3a6d57e5bec257c677d055ea955a46d340341863e93bb
|
|
4
|
+
data.tar.gz: c98cbe9ff713a3e79def2a6d8e0206e64eecd918846bfb442161e765aaa2e0db
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3c5dcbff242f824dbc53403503edf5613126aa7e2d141b1e3d0bc2fd3f217b278f4b61a1b79c26a2f0a98eed9a567902acd54b589c5a69b60d0a29a388861a49
|
|
7
|
+
data.tar.gz: 2d97f98214d2542e1cc9a49f655698c014392bfa254dbd3de2d11ab024de113a165790fe4479c6cb2d9b6880ff7a7333a62634156c4142e539d9e04b1492a767
|
data/lib/pwned_passwords.rb
CHANGED
|
@@ -22,7 +22,7 @@ class PwnedPasswords
|
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
|
-
if password_score
|
|
25
|
+
if password_score >= 100
|
|
26
26
|
puts "This password has been detected in too many breaches"
|
|
27
27
|
elsif (password_score > 20 && password_score < 100)
|
|
28
28
|
puts "This password is not great. Consider changing it."
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pwned_passwords
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oliver Day
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Checks against the Pwned Passwords API using the first five characters
|
|
14
14
|
of the SHA1 hash of a password to determine if it exists in previously disclosed
|
|
@@ -38,8 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
40
|
requirements: []
|
|
41
|
-
|
|
42
|
-
rubygems_version: 2.7.3
|
|
41
|
+
rubygems_version: 3.0.4
|
|
43
42
|
signing_key:
|
|
44
43
|
specification_version: 4
|
|
45
44
|
summary: Checks Pwned Passwords API for passwords disclosed in previous breaches.
|