scrypt 3.0.6 → 3.1.0
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
- checksums.yaml.gz.sig +0 -0
- data/README.md +149 -23
- data/Rakefile +38 -24
- data/ext/scrypt/Rakefile +1 -1
- data/ext/scrypt/warnp.c +7 -1
- data/lib/scrypt/engine.rb +227 -0
- data/lib/scrypt/errors.rb +14 -0
- data/lib/scrypt/password.rb +127 -0
- data/lib/scrypt/scrypt_ext.rb +8 -1
- data/lib/scrypt/security_utils.rb +4 -3
- data/lib/scrypt/version.rb +3 -1
- data/lib/scrypt.rb +7 -266
- data/scrypt.gemspec +29 -24
- data/spec/fixtures/test_vectors.yml +67 -0
- data/spec/scrypt/engine_spec.rb +171 -45
- data/spec/scrypt/ffi_spec.rb +33 -0
- data/spec/scrypt/integration_spec.rb +129 -0
- data/spec/scrypt/password_spec.rb +124 -78
- data/spec/scrypt/utils_spec.rb +53 -10
- data/spec/spec_helper.rb +46 -3
- data/spec/support/shared_examples.rb +46 -0
- data/spec/support/test_helpers.rb +47 -0
- data.tar.gz.sig +0 -0
- metadata +40 -104
- metadata.gz.sig +0 -0
- data/autotest/discover.rb +0 -1
metadata
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0
|
|
4
|
+
version: 3.1.0
|
|
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
11
|
bindir: bin
|
|
12
12
|
cert_chain:
|
|
13
13
|
- |
|
|
14
14
|
-----BEGIN CERTIFICATE-----
|
|
15
15
|
MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA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EBAMCBLAwHQYDVR0OBBYEFEF+cJzNMLtyKh6xGnlyx97tiHCl
|
|
29
29
|
MBwGA1UdEQQVMBOBEXBiaG9nYW5AZ21haWwuY29tMBwGA1UdEgQVMBOBEXBiaG9n
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
YW5AZ21haWwuY29tMA0GCSqGSIb3DQEBCwUAA4IBgQAsiXgPScyfZqqrUkaykumD
|
|
31
|
+
XtahlA0BcS9fchzkf21qd8w34L5I8gyz3fvAJXPAvSqZPSWEn6ud/TOxhXmG6+K/
|
|
32
|
+
rZ7J1iKbGpk3/yMmmkyTLsItloc4xABTRjyJ4Cy1wuJ4kdwgIW/kHTwWG0PFA1YF
|
|
33
|
+
ZoqZijAXbTQ4Z+wTcRiUjVpbizB4MtmaQb+Mrr+zxeEmRv/B8iZdkRCZ02C1u+T+
|
|
34
|
+
bwvmftjB0xuKvPmHP1KpSnFh3I4uvlykDMVSNwE0pKlGsVrzkJFf68R2YZJgDwiH
|
|
35
|
+
GmXe0sAsp14rX0I+JyC6a35TPrC7o1PH1zWLSJn2hBIbA/fObf8CAwNRIVHUTTUt
|
|
36
|
+
kr/2/0UpZZ6O3j7S8lovBRVi6Cv+P6avNYOiQpOH0kJyaSw2LMLl87D7t3JYQ0+8
|
|
37
|
+
rTgQJuEZY0TADK4NMJujsMEok9mO6Qfj4d+dVYdpFfuFgYf/LVnpT4sZ8bKVn0PQ
|
|
38
|
+
KtQ2gCSB20nUFBsuf/VRbsMWL+MxzesANGDEIrEXNS0=
|
|
39
39
|
-----END CERTIFICATE-----
|
|
40
|
-
date:
|
|
40
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
41
41
|
dependencies:
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: ffi-compiler
|
|
@@ -63,82 +63,16 @@ dependencies:
|
|
|
63
63
|
name: rake
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '9'
|
|
69
|
-
- - "<"
|
|
66
|
+
- - "~>"
|
|
70
67
|
- !ruby/object:Gem::Version
|
|
71
68
|
version: '13'
|
|
72
|
-
type: :
|
|
69
|
+
type: :runtime
|
|
73
70
|
prerelease: false
|
|
74
71
|
version_requirements: !ruby/object:Gem::Requirement
|
|
75
72
|
requirements:
|
|
76
|
-
- - "
|
|
77
|
-
- !ruby/object:Gem::Version
|
|
78
|
-
version: '9'
|
|
79
|
-
- - "<"
|
|
73
|
+
- - "~>"
|
|
80
74
|
- !ruby/object:Gem::Version
|
|
81
75
|
version: '13'
|
|
82
|
-
- !ruby/object:Gem::Dependency
|
|
83
|
-
name: rspec
|
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
|
85
|
-
requirements:
|
|
86
|
-
- - ">="
|
|
87
|
-
- !ruby/object:Gem::Version
|
|
88
|
-
version: '3'
|
|
89
|
-
- - "<"
|
|
90
|
-
- !ruby/object:Gem::Version
|
|
91
|
-
version: '4'
|
|
92
|
-
type: :development
|
|
93
|
-
prerelease: false
|
|
94
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
95
|
-
requirements:
|
|
96
|
-
- - ">="
|
|
97
|
-
- !ruby/object:Gem::Version
|
|
98
|
-
version: '3'
|
|
99
|
-
- - "<"
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version: '4'
|
|
102
|
-
- !ruby/object:Gem::Dependency
|
|
103
|
-
name: rdoc
|
|
104
|
-
requirement: !ruby/object:Gem::Requirement
|
|
105
|
-
requirements:
|
|
106
|
-
- - ">="
|
|
107
|
-
- !ruby/object:Gem::Version
|
|
108
|
-
version: '4'
|
|
109
|
-
- - "<"
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '5'
|
|
112
|
-
type: :development
|
|
113
|
-
prerelease: false
|
|
114
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
115
|
-
requirements:
|
|
116
|
-
- - ">="
|
|
117
|
-
- !ruby/object:Gem::Version
|
|
118
|
-
version: '4'
|
|
119
|
-
- - "<"
|
|
120
|
-
- !ruby/object:Gem::Version
|
|
121
|
-
version: '5'
|
|
122
|
-
- !ruby/object:Gem::Dependency
|
|
123
|
-
name: awesome_print
|
|
124
|
-
requirement: !ruby/object:Gem::Requirement
|
|
125
|
-
requirements:
|
|
126
|
-
- - ">="
|
|
127
|
-
- !ruby/object:Gem::Version
|
|
128
|
-
version: '1'
|
|
129
|
-
- - "<"
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '2'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '1'
|
|
139
|
-
- - "<"
|
|
140
|
-
- !ruby/object:Gem::Version
|
|
141
|
-
version: '2'
|
|
142
76
|
description: |2
|
|
143
77
|
The scrypt key derivation function is designed to be far
|
|
144
78
|
more secure against hardware brute-force attacks than
|
|
@@ -147,6 +81,7 @@ email:
|
|
|
147
81
|
- pbhogan@gmail.com
|
|
148
82
|
- steve@advancedcontrol.com.au
|
|
149
83
|
- rene.vanpaassen@gmail.com
|
|
84
|
+
- io+scrypt@jsg.io
|
|
150
85
|
executables: []
|
|
151
86
|
extensions:
|
|
152
87
|
- ext/scrypt/Rakefile
|
|
@@ -155,7 +90,6 @@ files:
|
|
|
155
90
|
- COPYING
|
|
156
91
|
- README.md
|
|
157
92
|
- Rakefile
|
|
158
|
-
- autotest/discover.rb
|
|
159
93
|
- ext/scrypt/Rakefile
|
|
160
94
|
- ext/scrypt/cpusupport.h
|
|
161
95
|
- ext/scrypt/crypto_scrypt.c
|
|
@@ -182,19 +116,27 @@ files:
|
|
|
182
116
|
- ext/scrypt/warnp.c
|
|
183
117
|
- ext/scrypt/warnp.h
|
|
184
118
|
- lib/scrypt.rb
|
|
119
|
+
- lib/scrypt/engine.rb
|
|
120
|
+
- lib/scrypt/errors.rb
|
|
121
|
+
- lib/scrypt/password.rb
|
|
185
122
|
- lib/scrypt/scrypt_ext.rb
|
|
186
123
|
- lib/scrypt/security_utils.rb
|
|
187
124
|
- lib/scrypt/version.rb
|
|
188
125
|
- scrypt.gemspec
|
|
126
|
+
- spec/fixtures/test_vectors.yml
|
|
189
127
|
- spec/scrypt/engine_spec.rb
|
|
128
|
+
- spec/scrypt/ffi_spec.rb
|
|
129
|
+
- spec/scrypt/integration_spec.rb
|
|
190
130
|
- spec/scrypt/password_spec.rb
|
|
191
131
|
- spec/scrypt/utils_spec.rb
|
|
192
132
|
- spec/spec_helper.rb
|
|
133
|
+
- spec/support/shared_examples.rb
|
|
134
|
+
- spec/support/test_helpers.rb
|
|
193
135
|
homepage: https://github.com/pbhogan/scrypt
|
|
194
136
|
licenses:
|
|
195
137
|
- BSD-3-Clause
|
|
196
|
-
metadata:
|
|
197
|
-
|
|
138
|
+
metadata:
|
|
139
|
+
rubygems_mfa_required: 'true'
|
|
198
140
|
rdoc_options: []
|
|
199
141
|
require_paths:
|
|
200
142
|
- lib
|
|
@@ -202,20 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
202
144
|
requirements:
|
|
203
145
|
- - ">="
|
|
204
146
|
- !ruby/object:Gem::Version
|
|
205
|
-
version:
|
|
147
|
+
version: 2.3.0
|
|
206
148
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
149
|
requirements:
|
|
208
150
|
- - ">="
|
|
209
151
|
- !ruby/object:Gem::Version
|
|
210
152
|
version: '0'
|
|
211
153
|
requirements: []
|
|
212
|
-
|
|
213
|
-
rubygems_version: 2.7.7
|
|
214
|
-
signing_key:
|
|
154
|
+
rubygems_version: 3.7.1
|
|
215
155
|
specification_version: 4
|
|
216
156
|
summary: scrypt password hashing algorithm.
|
|
217
|
-
test_files:
|
|
218
|
-
- spec/spec_helper.rb
|
|
219
|
-
- spec/scrypt/password_spec.rb
|
|
220
|
-
- spec/scrypt/engine_spec.rb
|
|
221
|
-
- spec/scrypt/utils_spec.rb
|
|
157
|
+
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
data/autotest/discover.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Autotest.add_discovery { "rspec2" }
|