password_hasher 1.0.0 → 1.0.1
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/README.md +1 -1
- data/lib/password_hasher/version.rb +1 -1
- data/password_hasher.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a654a6da28867505d6514ac7c1b9f18a7e36b0ea
|
|
4
|
+
data.tar.gz: 4b55549df21178cc3d50ce204898403b4d7c515e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 379ccb9e7b3cc8fe84901195650130ead8948bb429ecae55164f9f61244f8bfb7020aca52a71abecbfc4285d130a5e2c8b6bcdaf3e29fba2692430b375890cc1
|
|
7
|
+
data.tar.gz: c33f14a379f42ea15b4a67d8a08874ee9493d71990663bc37a901c847608aa72d5686b3f951a0f9fde68c3857ad1ff2f8ceb685e45ab0c949889f53876d85f9b
|
data/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
|
21
21
|
password = "goodpass"
|
|
22
22
|
hashed_password = PasswordHasher.hash_password(password)
|
|
23
23
|
#hashed_password == something like "sha1:1000:9NYDQj80ksetV+0uW/6VAJwXKTGDqKyv:SnRzqabSk/Kpmb9C109NIv+zbHArz4kg"
|
|
24
|
-
validated = PasswordHasher.validate_password(
|
|
24
|
+
validated = PasswordHasher.validate_password(password, hashed_password)
|
|
25
25
|
#validated == true
|
|
26
26
|
```
|
|
27
27
|
|
data/password_hasher.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Simple password hashing library.}
|
|
13
13
|
spec.description = %q{This gem was made from a preexisting library. I did not write the code. I just made it a gem so I could share it between projects.}
|
|
14
|
-
spec.homepage = "https://
|
|
14
|
+
spec.homepage = "https://github.com/riggleg/password_hasher"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: password_hasher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taylor Hornby
|
|
@@ -57,7 +57,7 @@ files:
|
|
|
57
57
|
- lib/password_hasher.rb
|
|
58
58
|
- lib/password_hasher/version.rb
|
|
59
59
|
- password_hasher.gemspec
|
|
60
|
-
homepage: https://
|
|
60
|
+
homepage: https://github.com/riggleg/password_hasher
|
|
61
61
|
licenses:
|
|
62
62
|
- MIT
|
|
63
63
|
metadata: {}
|