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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4630ced34c325ff4be35cfa5394a8f8e2c0aff5c
4
- data.tar.gz: 66b2099bfa1060fbcb77c89a0e752a05cf0e2b33
3
+ metadata.gz: 9324998b0ddaff7985d65f5e45b0e2bf8dd2c2d7
4
+ data.tar.gz: eab7b9a27e7a4a64d0553162c7f535c63b8a9bc4
5
5
  SHA512:
6
- metadata.gz: a76fb89a4186c3ac26e9ede6b8f078363db1fe698df31d07692eec49391e33d303360e3d7827ba7ca71c2fd42a0a973126f0691145e55c7011e453f8a9ab3caa
7
- data.tar.gz: d0f88afe2bc3fca4192d748a24f5dd91490dec7956cd51338f8738b3c1ee8ab74807491d2ae5e2f8c0bb1401fd515e5752375e171355ecc443eb0a201fb1cd66
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
- You can find out the number of times a password has appeared in Troy Hunt's Pwned Passwords V2 dataset as follows.
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
- ``` > PwnedPasswordsV2.have_i?('password')
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.
@@ -1,3 +1,3 @@
1
1
  module PwnedPasswordsV2
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pwned_passwords_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Singerman