ruby-paseto 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +8 -0
  3. data/CODE_OF_CONDUCT.md +84 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +549 -0
  6. data/lib/paseto/asn1/algorithm_identifier.rb +17 -0
  7. data/lib/paseto/asn1/curve_private_key.rb +22 -0
  8. data/lib/paseto/asn1/ec_private_key.rb +27 -0
  9. data/lib/paseto/asn1/ecdsa_full_r.rb +26 -0
  10. data/lib/paseto/asn1/ecdsa_sig_value.rb +23 -0
  11. data/lib/paseto/asn1/ecdsa_signature.rb +49 -0
  12. data/lib/paseto/asn1/ed25519_identifier.rb +15 -0
  13. data/lib/paseto/asn1/named_curve.rb +17 -0
  14. data/lib/paseto/asn1/one_asymmetric_key.rb +32 -0
  15. data/lib/paseto/asn1/private_key.rb +17 -0
  16. data/lib/paseto/asn1/private_key_algorithm_identifier.rb +17 -0
  17. data/lib/paseto/asn1/public_key.rb +17 -0
  18. data/lib/paseto/asn1/subject_public_key_info.rb +28 -0
  19. data/lib/paseto/asn1.rb +101 -0
  20. data/lib/paseto/asymmetric_key.rb +100 -0
  21. data/lib/paseto/configuration/box.rb +23 -0
  22. data/lib/paseto/configuration/decode_configuration.rb +68 -0
  23. data/lib/paseto/configuration.rb +18 -0
  24. data/lib/paseto/interface/i_d.rb +23 -0
  25. data/lib/paseto/interface/key.rb +113 -0
  26. data/lib/paseto/interface/pbkd.rb +83 -0
  27. data/lib/paseto/interface/pie.rb +59 -0
  28. data/lib/paseto/interface/pke.rb +86 -0
  29. data/lib/paseto/interface/serializer.rb +19 -0
  30. data/lib/paseto/interface/version.rb +161 -0
  31. data/lib/paseto/interface/wrapper.rb +20 -0
  32. data/lib/paseto/operations/i_d.rb +48 -0
  33. data/lib/paseto/operations/id/i_dv3.rb +20 -0
  34. data/lib/paseto/operations/id/i_dv4.rb +20 -0
  35. data/lib/paseto/operations/pbkd/p_b_k_dv3.rb +85 -0
  36. data/lib/paseto/operations/pbkd/p_b_k_dv4.rb +94 -0
  37. data/lib/paseto/operations/pbkw.rb +73 -0
  38. data/lib/paseto/operations/pke/p_k_ev3.rb +97 -0
  39. data/lib/paseto/operations/pke/p_k_ev4.rb +95 -0
  40. data/lib/paseto/operations/pke.rb +57 -0
  41. data/lib/paseto/operations/wrap.rb +29 -0
  42. data/lib/paseto/paserk.rb +55 -0
  43. data/lib/paseto/paserk_types.rb +46 -0
  44. data/lib/paseto/protocol/version3.rb +100 -0
  45. data/lib/paseto/protocol/version4.rb +99 -0
  46. data/lib/paseto/result.rb +9 -0
  47. data/lib/paseto/serializer/optional_json.rb +30 -0
  48. data/lib/paseto/serializer/raw.rb +23 -0
  49. data/lib/paseto/sodium/curve_25519.rb +46 -0
  50. data/lib/paseto/sodium/safe_ed25519_loader.rb +19 -0
  51. data/lib/paseto/sodium/stream/base.rb +82 -0
  52. data/lib/paseto/sodium/stream/x_cha_cha20_xor.rb +31 -0
  53. data/lib/paseto/sodium.rb +5 -0
  54. data/lib/paseto/symmetric_key.rb +119 -0
  55. data/lib/paseto/token.rb +127 -0
  56. data/lib/paseto/token_types.rb +29 -0
  57. data/lib/paseto/util.rb +105 -0
  58. data/lib/paseto/v3/local.rb +63 -0
  59. data/lib/paseto/v3/public.rb +204 -0
  60. data/lib/paseto/v4/local.rb +56 -0
  61. data/lib/paseto/v4/public.rb +169 -0
  62. data/lib/paseto/validator.rb +154 -0
  63. data/lib/paseto/verifiers/footer.rb +30 -0
  64. data/lib/paseto/verifiers/payload.rb +42 -0
  65. data/lib/paseto/verify.rb +48 -0
  66. data/lib/paseto/version.rb +6 -0
  67. data/lib/paseto/versions.rb +25 -0
  68. data/lib/paseto/wrappers/pie/pie_v3.rb +72 -0
  69. data/lib/paseto/wrappers/pie/pie_v4.rb +72 -0
  70. data/lib/paseto/wrappers/pie.rb +71 -0
  71. data/lib/paseto.rb +99 -0
  72. data/paseto.gemspec +58 -0
  73. data/sorbet/config +3 -0
  74. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  75. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  76. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
  77. data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
  78. data/sorbet/rbi/gems/ffi@1.15.5.rbi +1994 -0
  79. data/sorbet/rbi/gems/io-console@0.5.11.rbi +8 -0
  80. data/sorbet/rbi/gems/irb@1.5.1.rbi +342 -0
  81. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  82. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +267 -0
  83. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  84. data/sorbet/rbi/gems/oj@3.13.23.rbi +603 -0
  85. data/sorbet/rbi/gems/openssl@3.0.1.rbi +1735 -0
  86. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  87. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +407 -0
  88. data/sorbet/rbi/gems/rake@13.0.6.rbi +3021 -0
  89. data/sorbet/rbi/gems/rbnacl@7.1.1.rbi +3218 -0
  90. data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +3481 -0
  91. data/sorbet/rbi/gems/reline@0.3.1.rbi +8 -0
  92. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  93. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10887 -0
  94. data/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi +8090 -0
  95. data/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi +5300 -0
  96. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  97. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  98. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1239 -0
  99. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +219 -0
  100. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +2135 -0
  101. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  102. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  103. data/sorbet/rbi/gems/timecop@0.9.6.rbi +350 -0
  104. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +48 -0
  105. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2555 -0
  106. data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +391 -0
  107. data/sorbet/rbi/gems/yard@0.9.28.rbi +17816 -0
  108. data/sorbet/rbi/gems/zeitwerk@2.6.6.rbi +950 -0
  109. data/sorbet/rbi/shims/multi_json.rbi +19 -0
  110. data/sorbet/rbi/shims/openssl.rbi +111 -0
  111. data/sorbet/rbi/shims/rbnacl.rbi +65 -0
  112. data/sorbet/rbi/shims/zeitwerk.rbi +6 -0
  113. data/sorbet/rbi/todo.rbi +7 -0
  114. data/sorbet/tapioca/config.yml +30 -0
  115. data/sorbet/tapioca/require.rb +12 -0
  116. metadata +376 -0
@@ -0,0 +1,19 @@
1
+ # typed: true
2
+
3
+ module MultiJson
4
+ sig do
5
+ params(
6
+ source: T.untyped,
7
+ options: T::Hash[T.untyped, T.untyped]
8
+ ).returns(T.untyped)
9
+ end
10
+ def self.load(source, options = {}); end
11
+
12
+ sig do
13
+ params(
14
+ obj: T.untyped,
15
+ options: T::Hash[T.untyped, T.untyped]
16
+ ).returns(String)
17
+ end
18
+ def self.dump(obj, options = {}); end
19
+ end
@@ -0,0 +1,111 @@
1
+ # typed: false
2
+
3
+ class OpenSSL::PKey::EC
4
+ sig do
5
+ params(
6
+ digest: T.nilable(String),
7
+ data: String,
8
+ options: T.nilable(T::Hash[T.any(Symbol, String), String])
9
+ ).returns(String)
10
+ end
11
+ def sign_raw(digest, data, options = nil); end
12
+
13
+ sig do
14
+ params(
15
+ digest: T.nilable(String),
16
+ signature: String,
17
+ data: String,
18
+ options: T.nilable(T::Hash[T.any(Symbol, String), String])
19
+ ).returns(T::Boolean)
20
+ end
21
+ def verify_raw(digest, signature, data, options = nil); end
22
+ end
23
+
24
+ class OpenSSL::PKey::EC::Point
25
+ sig { params(conversion_form: Symbol).returns(String) }
26
+ def to_octet_string(conversion_form); end
27
+ end
28
+
29
+ module OpenSSL::PKey
30
+ sig { params(string: T.any(String, IO), pwd: T.nilable(String)).returns(OpenSSL::PKey::PKey) }
31
+ def self.read(string, pwd = nil); end
32
+
33
+ sig { params(alg: String).returns(OpenSSL::PKey::PKey) }
34
+ def self.generate_key(alg); end
35
+ end
36
+
37
+ class OpenSSL::PKey::PKey
38
+ sig { returns(String) }
39
+ def public_to_der; end
40
+
41
+ sig { returns(String) }
42
+ def public_to_pem; end
43
+
44
+ sig { returns(String) }
45
+ def private_to_der; end
46
+
47
+ sig { returns(String) }
48
+ def private_to_pem; end
49
+
50
+ sig { returns(String) }
51
+ def oid; end
52
+
53
+ sig do
54
+ params(
55
+ digest: T.nilable(String),
56
+ data: String,
57
+ options: T.nilable(T::Hash[T.any(Symbol, String), String])
58
+ ).returns(String)
59
+ end
60
+ def sign(digest, data, options = nil); end
61
+
62
+ sig do
63
+ params(
64
+ digest: T.nilable(String),
65
+ data: String,
66
+ options: T.nilable(T::Hash[T.any(Symbol, String), String])
67
+ ).returns(String)
68
+ end
69
+ def sign_raw(digest, data, options = nil); end
70
+
71
+ sig do
72
+ params(
73
+ digest: T.nilable(String),
74
+ signature: String,
75
+ data: String,
76
+ options: T.nilable(T::Hash[T.any(Symbol, String), String])
77
+ ).returns(T::Boolean)
78
+ end
79
+ def verify_raw(digest, signature, data, options = nil); end
80
+
81
+ sig do
82
+ params(
83
+ digest: T.nilable(String),
84
+ signature: String,
85
+ data: String,
86
+ options: T.nilable(T::Hash[T.any(String, Symbol), String])
87
+ ).returns(T::Boolean)
88
+ end
89
+ def verify(digest, signature, data, options = nil); end
90
+
91
+ sig { returns(String) }
92
+ def to_text; end
93
+ end
94
+
95
+ module OpenSSL
96
+ sig { params(a: String, b: String).returns(T::Boolean) }
97
+ def self.secure_compare(a, b); end
98
+
99
+ sig { params(a: String, b: String).returns(T::Boolean) }
100
+ def self.fixed_length_secure_compare(a, b); end
101
+ end
102
+
103
+ class OpenSSL::Digest
104
+ sig { params(name: String, data: String).returns(String) }
105
+ def self.digest(name, data); end
106
+ end
107
+
108
+ class OpenSSL::HMAC
109
+ sig { params(digest: String, key: String, data: String).returns(String) }
110
+ def self.digest(digest, key, data); end
111
+ end
@@ -0,0 +1,65 @@
1
+ # typed: false
2
+
3
+ module RbNaCl
4
+ module Hash
5
+ sig do
6
+ params(
7
+ data: String,
8
+ key: T.nilable(String),
9
+ digest_size: T.nilable(Integer),
10
+ salt: T.nilable(String)
11
+ ).returns(String)
12
+ end
13
+ def self.blake2b(data, key: nil, digest_size: nil, salt: nil); end
14
+ end
15
+
16
+ module Util
17
+ class << self
18
+ sig { params(string: String, length: Integer, description: String).returns(String) }
19
+ def check_string(string, length, description); end
20
+
21
+ sig { params(length: Integer).returns(String) }
22
+ def zeroes(length); end
23
+ end
24
+ end
25
+
26
+ module PasswordHash
27
+ sig do
28
+ params(
29
+ password: String,
30
+ salt: String,
31
+ opslimit: T.any(Symbol, Integer),
32
+ memlimit: T.any(Symbol, Integer),
33
+ digest_size: Integer
34
+ ).returns(String)
35
+ end
36
+ def self.argon2(password, salt, opslimit, memlimit, digest_size = 64); end
37
+
38
+ sig do
39
+ params(
40
+ password: String,
41
+ salt: String,
42
+ opslimit: T.any(Symbol, Integer),
43
+ memlimit: T.any(Symbol, Integer),
44
+ digest_size: Integer
45
+ ).returns(String)
46
+ end
47
+ def self.argon2i(password, salt, opslimit, memlimit, digest_size = 64); end
48
+
49
+ sig do
50
+ params(
51
+ password: String,
52
+ salt: String,
53
+ opslimit: T.any(Symbol, Integer),
54
+ memlimit: T.any(Symbol, Integer),
55
+ digest_size: Integer
56
+ ).returns(String)
57
+ end
58
+ def self.argon2id(password, salt, opslimit, memlimit, digest_size = 64); end
59
+ end
60
+
61
+ module Random
62
+ sig { params(length: Integer).returns(String) }
63
+ def self.random_bytes(length); end
64
+ end
65
+ end
@@ -0,0 +1,6 @@
1
+ # typed: false
2
+
3
+ class Zeitwerk::Loader
4
+ sig { returns(T.untyped) }
5
+ def self.for_gem; end
6
+ end
@@ -0,0 +1,7 @@
1
+ # DO NOT EDIT MANUALLY
2
+ # This is an autogenerated file for unresolved constants.
3
+ # Please instead update this file by running `bin/tapioca todo`.
4
+
5
+ # typed: false
6
+
7
+ module SimpleCov::Formatter::JSONFormatter; end
@@ -0,0 +1,30 @@
1
+ gem:
2
+ # Add your `gem` command parameters here:
3
+ #
4
+ # exclude:
5
+ # - gem_name
6
+ # doc: true
7
+ # workers: 5
8
+ exclude:
9
+ - appraisal
10
+ - parallel_tests
11
+ - parlour
12
+ - parser
13
+ - paseto
14
+ - rbi
15
+ - reek
16
+ - rspec_junit_formatter
17
+ - rubocop
18
+ - rubocop-ast
19
+ - rubocop-performance
20
+ - rubocop-rspec
21
+ - rubocop-sorbet
22
+ - spoom
23
+ - tapioca
24
+ - unparser
25
+ dsl:
26
+ # Add your `dsl` command parameters here:
27
+ #
28
+ # exclude:
29
+ # - SomeGeneratorName
30
+ # workers: 5
@@ -0,0 +1,12 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ require 'base64'
5
+ require 'fileutils'
6
+ require 'json'
7
+ require 'multi_json'
8
+ require 'openssl'
9
+ require 'rbnacl'
10
+ require 'securerandom'
11
+ require 'simplecov'
12
+ require 'sorbet-runtime'
metadata ADDED
@@ -0,0 +1,376 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-paseto
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joe Truba
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.15.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.15.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: openssl
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.0.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: sorbet-runtime
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: zeitwerk
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: appraisal
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.38.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.38.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-performance
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.15.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.15.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rspec
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.14.2
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 2.14.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop-sorbet
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.6.11
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.6.11
181
+ - !ruby/object:Gem::Dependency
182
+ name: simplecov
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: sorbet
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: timecop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ description: |2
224
+ Platform Agnostic SEcurity TOkens are a specification for secure stateless tokens.
225
+ This is an implementation of PASETO tokens, and the PASERK key management extensions,
226
+ in ruby, with runtime static type checking provided by Sorbet.
227
+ email:
228
+ - joe@bannable.net
229
+ executables: []
230
+ extensions: []
231
+ extra_rdoc_files: []
232
+ files:
233
+ - CHANGELOG.md
234
+ - CODE_OF_CONDUCT.md
235
+ - LICENSE.txt
236
+ - README.md
237
+ - lib/paseto.rb
238
+ - lib/paseto/asn1.rb
239
+ - lib/paseto/asn1/algorithm_identifier.rb
240
+ - lib/paseto/asn1/curve_private_key.rb
241
+ - lib/paseto/asn1/ec_private_key.rb
242
+ - lib/paseto/asn1/ecdsa_full_r.rb
243
+ - lib/paseto/asn1/ecdsa_sig_value.rb
244
+ - lib/paseto/asn1/ecdsa_signature.rb
245
+ - lib/paseto/asn1/ed25519_identifier.rb
246
+ - lib/paseto/asn1/named_curve.rb
247
+ - lib/paseto/asn1/one_asymmetric_key.rb
248
+ - lib/paseto/asn1/private_key.rb
249
+ - lib/paseto/asn1/private_key_algorithm_identifier.rb
250
+ - lib/paseto/asn1/public_key.rb
251
+ - lib/paseto/asn1/subject_public_key_info.rb
252
+ - lib/paseto/asymmetric_key.rb
253
+ - lib/paseto/configuration.rb
254
+ - lib/paseto/configuration/box.rb
255
+ - lib/paseto/configuration/decode_configuration.rb
256
+ - lib/paseto/interface/i_d.rb
257
+ - lib/paseto/interface/key.rb
258
+ - lib/paseto/interface/pbkd.rb
259
+ - lib/paseto/interface/pie.rb
260
+ - lib/paseto/interface/pke.rb
261
+ - lib/paseto/interface/serializer.rb
262
+ - lib/paseto/interface/version.rb
263
+ - lib/paseto/interface/wrapper.rb
264
+ - lib/paseto/operations/i_d.rb
265
+ - lib/paseto/operations/id/i_dv3.rb
266
+ - lib/paseto/operations/id/i_dv4.rb
267
+ - lib/paseto/operations/pbkd/p_b_k_dv3.rb
268
+ - lib/paseto/operations/pbkd/p_b_k_dv4.rb
269
+ - lib/paseto/operations/pbkw.rb
270
+ - lib/paseto/operations/pke.rb
271
+ - lib/paseto/operations/pke/p_k_ev3.rb
272
+ - lib/paseto/operations/pke/p_k_ev4.rb
273
+ - lib/paseto/operations/wrap.rb
274
+ - lib/paseto/paserk.rb
275
+ - lib/paseto/paserk_types.rb
276
+ - lib/paseto/protocol/version3.rb
277
+ - lib/paseto/protocol/version4.rb
278
+ - lib/paseto/result.rb
279
+ - lib/paseto/serializer/optional_json.rb
280
+ - lib/paseto/serializer/raw.rb
281
+ - lib/paseto/sodium.rb
282
+ - lib/paseto/sodium/curve_25519.rb
283
+ - lib/paseto/sodium/safe_ed25519_loader.rb
284
+ - lib/paseto/sodium/stream/base.rb
285
+ - lib/paseto/sodium/stream/x_cha_cha20_xor.rb
286
+ - lib/paseto/symmetric_key.rb
287
+ - lib/paseto/token.rb
288
+ - lib/paseto/token_types.rb
289
+ - lib/paseto/util.rb
290
+ - lib/paseto/v3/local.rb
291
+ - lib/paseto/v3/public.rb
292
+ - lib/paseto/v4/local.rb
293
+ - lib/paseto/v4/public.rb
294
+ - lib/paseto/validator.rb
295
+ - lib/paseto/verifiers/footer.rb
296
+ - lib/paseto/verifiers/payload.rb
297
+ - lib/paseto/verify.rb
298
+ - lib/paseto/version.rb
299
+ - lib/paseto/versions.rb
300
+ - lib/paseto/wrappers/pie.rb
301
+ - lib/paseto/wrappers/pie/pie_v3.rb
302
+ - lib/paseto/wrappers/pie/pie_v4.rb
303
+ - paseto.gemspec
304
+ - sorbet/config
305
+ - sorbet/rbi/annotations/rainbow.rbi
306
+ - sorbet/rbi/gems/ast@2.4.2.rbi
307
+ - sorbet/rbi/gems/diff-lcs@1.5.0.rbi
308
+ - sorbet/rbi/gems/docile@1.4.0.rbi
309
+ - sorbet/rbi/gems/ffi@1.15.5.rbi
310
+ - sorbet/rbi/gems/io-console@0.5.11.rbi
311
+ - sorbet/rbi/gems/irb@1.5.1.rbi
312
+ - sorbet/rbi/gems/json@2.6.3.rbi
313
+ - sorbet/rbi/gems/multi_json@1.15.0.rbi
314
+ - sorbet/rbi/gems/netrc@0.11.0.rbi
315
+ - sorbet/rbi/gems/oj@3.13.23.rbi
316
+ - sorbet/rbi/gems/openssl@3.0.1.rbi
317
+ - sorbet/rbi/gems/parallel@1.22.1.rbi
318
+ - sorbet/rbi/gems/rainbow@3.1.1.rbi
319
+ - sorbet/rbi/gems/rake@13.0.6.rbi
320
+ - sorbet/rbi/gems/rbnacl@7.1.1.rbi
321
+ - sorbet/rbi/gems/regexp_parser@2.6.1.rbi
322
+ - sorbet/rbi/gems/reline@0.3.1.rbi
323
+ - sorbet/rbi/gems/rexml@3.2.5.rbi
324
+ - sorbet/rbi/gems/rspec-core@3.12.0.rbi
325
+ - sorbet/rbi/gems/rspec-expectations@3.12.0.rbi
326
+ - sorbet/rbi/gems/rspec-mocks@3.12.0.rbi
327
+ - sorbet/rbi/gems/rspec-support@3.12.0.rbi
328
+ - sorbet/rbi/gems/rspec@3.12.0.rbi
329
+ - sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
330
+ - sorbet/rbi/gems/simplecov-html@0.12.3.rbi
331
+ - sorbet/rbi/gems/simplecov@0.21.2.rbi
332
+ - sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
333
+ - sorbet/rbi/gems/thor@1.2.1.rbi
334
+ - sorbet/rbi/gems/timecop@0.9.6.rbi
335
+ - sorbet/rbi/gems/unicode-display_width@2.3.0.rbi
336
+ - sorbet/rbi/gems/webrick@1.7.0.rbi
337
+ - sorbet/rbi/gems/yard-sorbet@0.7.0.rbi
338
+ - sorbet/rbi/gems/yard@0.9.28.rbi
339
+ - sorbet/rbi/gems/zeitwerk@2.6.6.rbi
340
+ - sorbet/rbi/shims/multi_json.rbi
341
+ - sorbet/rbi/shims/openssl.rbi
342
+ - sorbet/rbi/shims/rbnacl.rbi
343
+ - sorbet/rbi/shims/zeitwerk.rbi
344
+ - sorbet/rbi/todo.rbi
345
+ - sorbet/tapioca/config.yml
346
+ - sorbet/tapioca/require.rb
347
+ homepage: https://github.com/bannable/paseto
348
+ licenses:
349
+ - MIT
350
+ metadata:
351
+ bug_tracker_uri: https://github.com/bannable/paseto/issues
352
+ changelog_uri: https://github.com/bannable/paseto/blob/main/CHANGELOG.md
353
+ documentation_uri: https://github.com/bannable/paseto
354
+ homepage_uri: https://github.com/bannable/paseto
355
+ source_code_uri: https://github.com/bannable/paseto
356
+ rubygems_mfa_required: 'true'
357
+ post_install_message:
358
+ rdoc_options: []
359
+ require_paths:
360
+ - lib
361
+ required_ruby_version: !ruby/object:Gem::Requirement
362
+ requirements:
363
+ - - ">="
364
+ - !ruby/object:Gem::Version
365
+ version: 3.0.0
366
+ required_rubygems_version: !ruby/object:Gem::Requirement
367
+ requirements:
368
+ - - ">="
369
+ - !ruby/object:Gem::Version
370
+ version: '0'
371
+ requirements: []
372
+ rubygems_version: 3.3.26
373
+ signing_key:
374
+ specification_version: 4
375
+ summary: A ruby implementation of PASETO and PASERK tokens
376
+ test_files: []