scrypt 3.0.7 → 3.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Rakefile +1 -1
- data/ext/scrypt/Rakefile +1 -1
- data/lib/scrypt/version.rb +1 -1
- data/scrypt.gemspec +5 -4
- data/spec/scrypt/engine_spec.rb +4 -4
- data/spec/scrypt/password_spec.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +55 -36
- metadata.gz.sig +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8179f4b0bf8f79e8476cc36f386e1fa349efa0db814a7f40a7f67b521a3a80b2
|
4
|
+
data.tar.gz: 99dd37077aa2003bf966336aee1f395cc655fcf61aac44ed12f049e36e66b62a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b935e06c8d3e342b5de545cc18a8d4e04ed589d22c9006b90049e39970f1063939b660da88be43f293d67156ec394b238955bb68477bc3aefb0d70b74f8bdd
|
7
|
+
data.tar.gz: e13414929c7bb835c456e7e4ad3db8f4dedf8092cf0e3fd7413fd423c39591b9b80575d9baeea35ced8d70cb9c82718d9b3fd6429d2c4452d7a87025013d960b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -42,7 +42,7 @@ namespace 'ffi-compiler' do
|
|
42
42
|
t.cflags << '-Wall -std=c99'
|
43
43
|
t.cflags << '-msse -msse2' if t.platform.arch.include? '86'
|
44
44
|
t.cflags << '-D_GNU_SOURCE=1' if RbConfig::CONFIG['host_os'].downcase =~ /mingw/
|
45
|
-
t.cflags << '-D_POSIX_C_SOURCE=
|
45
|
+
t.cflags << '-D_POSIX_C_SOURCE=200809L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
|
46
46
|
|
47
47
|
if 1.size == 4 && target_cpu =~ /i386|x86_32/ && t.platform.mac?
|
48
48
|
t.cflags << '-arch i386'
|
data/ext/scrypt/Rakefile
CHANGED
@@ -6,7 +6,7 @@ FFI::Compiler::CompileTask.new('scrypt_ext') do |t|
|
|
6
6
|
t.cflags << '-Wall -std=c99'
|
7
7
|
t.cflags << '-msse -msse2' if t.platform.arch.include? '86'
|
8
8
|
t.cflags << '-D_GNU_SOURCE=1' if RbConfig::CONFIG['host_os'].downcase =~ /mingw/
|
9
|
-
t.cflags << '-D_POSIX_C_SOURCE=
|
9
|
+
t.cflags << '-D_POSIX_C_SOURCE=200809L' if RbConfig::CONFIG['host_os'].downcase =~ /linux/
|
10
10
|
|
11
11
|
if 1.size == 4 && target_cpu =~ /i386|x86_32/ && t.platform.mac?
|
12
12
|
t.cflags << '-arch i386'
|
data/lib/scrypt/version.rb
CHANGED
data/scrypt.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
'steve@advancedcontrol.com.au',
|
17
17
|
'rene.vanpaassen@gmail.com',
|
18
18
|
'io+scrypt@jsg.io']
|
19
|
-
s.cert_chain = ['certs/
|
19
|
+
s.cert_chain = ['certs/pbhogan.pem']
|
20
20
|
s.license = 'BSD-3-Clause'
|
21
21
|
|
22
22
|
s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $0 =~ /gem\z/
|
@@ -30,9 +30,12 @@ Gem::Specification.new do |s|
|
|
30
30
|
alternative functions such as PBKDF2 or bcrypt.
|
31
31
|
DESC
|
32
32
|
|
33
|
+
s.required_ruby_version = '>= 2.3.0'
|
34
|
+
|
33
35
|
s.add_dependency 'ffi-compiler', '>= 1.0', '< 2.0'
|
36
|
+
s.add_dependency 'rake', '>= 9', '< 14'
|
34
37
|
s.add_development_dependency 'awesome_print', '>= 1', '< 2'
|
35
|
-
s.add_development_dependency 'rake', '>= 9', '<
|
38
|
+
s.add_development_dependency 'rake', '>= 9', '< 14'
|
36
39
|
s.add_development_dependency 'rdoc', '>= 4', '< 5'
|
37
40
|
s.add_development_dependency 'rspec', '>= 3', '< 4'
|
38
41
|
|
@@ -42,8 +45,6 @@ Gem::Specification.new do |s|
|
|
42
45
|
s.add_development_dependency 'rubocop-performance', '>= 1.5.0', '< 1.6.0'
|
43
46
|
end
|
44
47
|
|
45
|
-
s.rubyforge_project = 'scrypt'
|
46
|
-
|
47
48
|
s.extensions = ['ext/scrypt/Rakefile']
|
48
49
|
|
49
50
|
s.files = %w[Rakefile scrypt.gemspec README.md COPYING] + Dir.glob('{lib,spec,autotest}/**/*')
|
data/spec/scrypt/engine_spec.rb
CHANGED
@@ -49,13 +49,13 @@ describe 'Generating SCrypt hashes' do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it 'should raise an InvalidSalt error if the salt is invalid' do
|
52
|
-
expect
|
52
|
+
expect { SCrypt::Engine.hash_secret(@password, 'nino') }.to raise_error(SCrypt::Errors::InvalidSalt)
|
53
53
|
end
|
54
54
|
|
55
55
|
it 'should raise an InvalidSecret error if the secret is invalid' do
|
56
|
-
expect
|
57
|
-
expect
|
58
|
-
expect
|
56
|
+
expect { SCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }.to raise_error(SCrypt::Errors::InvalidSecret)
|
57
|
+
expect { SCrypt::Engine.hash_secret(nil, @salt) }.to_not raise_error
|
58
|
+
expect { SCrypt::Engine.hash_secret(false, @salt) }.to_not raise_error
|
59
59
|
end
|
60
60
|
|
61
61
|
it 'should call #to_s on the secret and use the return value as the actual secret data' do
|
@@ -42,7 +42,7 @@ describe 'Reading a hashed password' do
|
|
42
42
|
end
|
43
43
|
|
44
44
|
it 'should raise an InvalidHashError when given an invalid hash' do
|
45
|
-
expect
|
45
|
+
expect { SCrypt::Password.new('not a valid hash') }.to raise_error(SCrypt::Errors::InvalidHash)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Hogan
|
8
8
|
- Stephen von Takach
|
9
9
|
- Rene van Paassen
|
10
10
|
- Johanns Gregorian
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain:
|
14
14
|
- |
|
15
15
|
-----BEGIN CERTIFICATE-----
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
16
|
+
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MRAwDgYDVQQDDAdwYmhv
|
17
|
+
Z2FuMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
18
|
+
HhcNMjQwNjA0MTUwOTUzWhcNMjUwNjA0MTUwOTUzWjA+MRAwDgYDVQQDDAdwYmhv
|
19
|
+
Z2FuMRUwEwYKCZImiZPyLGQBGRYFZ21haWwxEzARBgoJkiaJk/IsZAEZFgNjb20w
|
20
|
+
ggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCevDHynbqCJNhCJjk+S1eV
|
21
|
+
ow5qEIR4CexuOe+JQ0Rs4parAWlvYFqsKfzey7daM4ZHswZ0UC0KlOUWkqqyMLEs
|
22
|
+
IOYCfD5VNW8hOw491wcqk38Yg4cAgXl7g3fbyryAvXJ1IxCeQkgPUBtBafnhCkYL
|
23
|
+
Ql5f0/ie3beNqIf3hurH7Q/gOhFTwfzKXO3O5bAbb+ooQ+XqshVe4NPdxxL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qTUXr6QS0Aei4heTJEH85yXqdgsn2EKsTMC1vAbBGR
|
39
|
+
2SIh/w6kd92reXNpKv+PzBa+yFT5pS7f+6CfMC8XdJE=
|
40
40
|
-----END CERTIFICATE-----
|
41
|
-
date:
|
41
|
+
date: 2024-06-04 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: ffi-compiler
|
@@ -60,6 +60,26 @@ dependencies:
|
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '2.0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rake
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '9'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '14'
|
73
|
+
type: :runtime
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '9'
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '14'
|
63
83
|
- !ruby/object:Gem::Dependency
|
64
84
|
name: awesome_print
|
65
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +109,7 @@ dependencies:
|
|
89
109
|
version: '9'
|
90
110
|
- - "<"
|
91
111
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
112
|
+
version: '14'
|
93
113
|
type: :development
|
94
114
|
prerelease: false
|
95
115
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -99,7 +119,7 @@ dependencies:
|
|
99
119
|
version: '9'
|
100
120
|
- - "<"
|
101
121
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
122
|
+
version: '14'
|
103
123
|
- !ruby/object:Gem::Dependency
|
104
124
|
name: rdoc
|
105
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -259,7 +279,7 @@ homepage: https://github.com/pbhogan/scrypt
|
|
259
279
|
licenses:
|
260
280
|
- BSD-3-Clause
|
261
281
|
metadata: {}
|
262
|
-
post_install_message:
|
282
|
+
post_install_message:
|
263
283
|
rdoc_options: []
|
264
284
|
require_paths:
|
265
285
|
- lib
|
@@ -267,20 +287,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
267
287
|
requirements:
|
268
288
|
- - ">="
|
269
289
|
- !ruby/object:Gem::Version
|
270
|
-
version:
|
290
|
+
version: 2.3.0
|
271
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
272
292
|
requirements:
|
273
293
|
- - ">="
|
274
294
|
- !ruby/object:Gem::Version
|
275
295
|
version: '0'
|
276
296
|
requirements: []
|
277
|
-
|
278
|
-
|
279
|
-
signing_key:
|
297
|
+
rubygems_version: 3.5.10
|
298
|
+
signing_key:
|
280
299
|
specification_version: 4
|
281
300
|
summary: scrypt password hashing algorithm.
|
282
301
|
test_files:
|
283
|
-
- spec/spec_helper.rb
|
284
|
-
- spec/scrypt/password_spec.rb
|
285
302
|
- spec/scrypt/engine_spec.rb
|
303
|
+
- spec/scrypt/password_spec.rb
|
286
304
|
- spec/scrypt/utils_spec.rb
|
305
|
+
- spec/spec_helper.rb
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
}�'�+��F8A�D4
|
1
|
+
VKϣ`��C?�qi�I�)i�xJ��>��=6��~ߜ�Hj�*
|
2
|
+
�'��[{_�<��;9�g`�r��Y�h�|/ǝ�Lx5�p*�Z]J�A��q���2
|