pwned_passwords_v2 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/pwned_passwords_v2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9324998b0ddaff7985d65f5e45b0e2bf8dd2c2d7
|
4
|
+
data.tar.gz: eab7b9a27e7a4a64d0553162c7f535c63b8a9bc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b805279f0a6e08b246fbad5a9141683f7583ddd399d9b9736f8cb6a08748338e13c487eff162ba81aea37cf735939fd8b463822a181606ad0ed0b6e0b0f8b9eb
|
7
|
+
data.tar.gz: e1c3a6d20a765738349cd286e65fe6254e68ac666782d2115fc351afa588842abf5b3e4b36c76fba3b159eec10323c7842838b445ef69ca4e22dcd246964012e
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ See https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ for mo
|
|
8
8
|
|
9
9
|
The code is kept deliberately simple so you can eyeball what is going on.
|
10
10
|
|
11
|
-
The passwords you use in this gem do not get sent externally. The password is sha1 hashed, and then only the first 5 characters are sent externally.
|
11
|
+
The passwords you use in this gem do not get sent externally. The password is sha1 hashed, and then only the first 5 characters are sent externally. The API response is then checked locally to see if a matching SHA1 hash is present.
|
12
12
|
|
13
13
|
Troy Hunt's [blog post](https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/) explains this process in more detail.
|
14
14
|
|
@@ -32,16 +32,16 @@ Or install it yourself as:
|
|
32
32
|
|
33
33
|
## Usage
|
34
34
|
|
35
|
-
|
35
|
+
You can find out the number of times a password has appeared in Troy Hunt's Pwned Passwords V2 dataset as follows.
|
36
36
|
|
37
|
-
|
37
|
+
|
38
|
+
```
|
39
|
+
> PwnedPasswordsV2.have_i?('password')
|
38
40
|
=> 3303003
|
39
41
|
> PwnedPasswordsV2.have_i?('a_nice_strong_password+%^&*()__*')
|
40
42
|
=> 0
|
41
43
|
```
|
42
44
|
|
43
|
-
2.0.0-p643 :007 >
|
44
|
-
|
45
45
|
## Development
|
46
46
|
|
47
47
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|