clearance-deprecated_password_strategies 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -4
- data/README.md +0 -7
- data/clearance-deprecated_password_strategies.gemspec +1 -1
- data/lib/clearance/password_strategies/deprecated/blowfish.rb +1 -1
- data/lib/clearance/password_strategies/deprecated/version.rb +1 -1
- data/spec/clearance/password_strategies/deprecated/blowfish_spec.rb +1 -1
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5f25d54f67bd61e51fcbe05c7afa98c48f2df6aa591da4d0a51df49172b0e93e
|
4
|
+
data.tar.gz: 14f226090841343dce665c7d61bde65690928e1ef8485e8b80f118ec32bb5e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90316f4b6cfc9412978f2e77fe170ffcb84c2268f2f65350862618f39339e41df684a5e68f77a04086b8b21fdf100759e18fc8939a3e56719159e3b79f60ac20
|
7
|
+
data.tar.gz: '08e0cbfa5df1ee7ee184e2350ad4426a71ae83971edba52575cd7906c547fb9ea31747025a7b5c087028cdfb994ac90ec280ae7fdac8d8fd6452e92cf0920eec'
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -29,13 +29,6 @@ Thank you, [contributors]!
|
|
29
29
|
[CONTRIBUTING]: CONTRIBUTING.md
|
30
30
|
[contributors]: https://github.com/thoughtbot/templates/graphs/contributors
|
31
31
|
|
32
|
-
## Need Help?
|
33
|
-
|
34
|
-
We offer 1-on-1 coaching. [Get in touch] if you'd like to learn more about
|
35
|
-
starting, maintaining, and contributing to an open source project.
|
36
|
-
|
37
|
-
[Get in touch]: http://coaching.thoughtbot.com/rails/?utm_source=github
|
38
|
-
|
39
32
|
## License
|
40
33
|
|
41
34
|
Open source templates are Copyright (c) 2015 thoughtbot, inc. It contains free
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["derekprior@gmail.com"]
|
11
11
|
spec.summary = "Deprecated password strategies extracted from Clearance"
|
12
12
|
spec.description = "SHA1, Blowfish, and SHA1 to BCrypt migration strategies"
|
13
|
-
spec.homepage = "https://github.com/thoughtbot/clearance-
|
13
|
+
spec.homepage = "https://github.com/thoughtbot/clearance-deprecated_password_strategies"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -27,7 +27,7 @@ module Clearance
|
|
27
27
|
|
28
28
|
def generate_hash(string)
|
29
29
|
cipher = OpenSSL::Cipher::Cipher.new("bf-cbc").encrypt
|
30
|
-
cipher.key = Digest::SHA256.digest(salt)
|
30
|
+
cipher.key = Digest::SHA256.digest(salt)[0..15]
|
31
31
|
hash = cipher.update(string) << cipher.final
|
32
32
|
Base64.encode64(hash).encode("utf-8")
|
33
33
|
end
|
@@ -21,7 +21,7 @@ describe Clearance::PasswordStrategies::Blowfish do
|
|
21
21
|
|
22
22
|
it "encrypts the password using Blowfish and the existing salt" do
|
23
23
|
cipher = OpenSSL::Cipher::Cipher.new("bf-cbc").encrypt
|
24
|
-
cipher.key = Digest::SHA256.digest(salt)
|
24
|
+
cipher.key = Digest::SHA256.digest(salt)[0..15]
|
25
25
|
expected = cipher.update("--#{salt}--#{password}--") << cipher.final
|
26
26
|
encrypted_password = Base64.decode64(subject.encrypted_password)
|
27
27
|
expect(encrypted_password).to eq expected
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clearance-deprecated_password_strategies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Prior
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,7 +105,7 @@ files:
|
|
105
105
|
- spec/clearance/password_strategies/deprecated/blowfish_spec.rb
|
106
106
|
- spec/clearance/password_strategies/deprecated/sha1_spec.rb
|
107
107
|
- spec/spec_helper.rb
|
108
|
-
homepage: https://github.com/thoughtbot/clearance-
|
108
|
+
homepage: https://github.com/thoughtbot/clearance-deprecated_password_strategies
|
109
109
|
licenses:
|
110
110
|
- MIT
|
111
111
|
metadata: {}
|
@@ -124,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
|
-
|
128
|
-
rubygems_version: 2.4.5
|
127
|
+
rubygems_version: 3.0.2
|
129
128
|
signing_key:
|
130
129
|
specification_version: 4
|
131
130
|
summary: Deprecated password strategies extracted from Clearance
|
@@ -134,4 +133,3 @@ test_files:
|
|
134
133
|
- spec/clearance/password_strategies/deprecated/blowfish_spec.rb
|
135
134
|
- spec/clearance/password_strategies/deprecated/sha1_spec.rb
|
136
135
|
- spec/spec_helper.rb
|
137
|
-
has_rdoc:
|