secure_jwt 0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8c111f243ff01928e557b0d764c28bd31075df1d9822127188cc1a62453bffe3
4
+ data.tar.gz: 420a70833f9ddc621324ddc1bad9fd76ea3b0a682e9e288dc5e3865abc7dd747
5
+ SHA512:
6
+ metadata.gz: dcf75b7289fb69a0375642f3f54465c37ab11a4d8aebe1e56ea87054d04f6d32be25a23aed52e5e683c6af634e4b220ff77c5c7059c8a540fda3023dcb4c4119
7
+ data.tar.gz: 27fb10bb12f352353c725881161486f5bd01a574d64fd9e3a4114201155510fd2f9456201802022fb92f8c01ee1b70e1ab027c3c316c6a3d5d908bf8a7834ab1
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at jlinder@boardpackager.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in secure_jwt.gemspec
6
+ gemspec
7
+
8
+ gem 'rspec'
data/Gemfile.lock ADDED
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ secure_jwt (0.1.0)
5
+ jwt
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.4.4)
11
+ jwt (1.5.6)
12
+ rake (10.5.0)
13
+ rspec (3.10.0)
14
+ rspec-core (~> 3.10.0)
15
+ rspec-expectations (~> 3.10.0)
16
+ rspec-mocks (~> 3.10.0)
17
+ rspec-core (3.10.1)
18
+ rspec-support (~> 3.10.0)
19
+ rspec-expectations (3.10.1)
20
+ diff-lcs (>= 1.2.0, < 2.0)
21
+ rspec-support (~> 3.10.0)
22
+ rspec-mocks (3.10.2)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.10.0)
25
+ rspec-support (3.10.2)
26
+
27
+ PLATFORMS
28
+ ruby
29
+
30
+ DEPENDENCIES
31
+ bundler (~> 1.16)
32
+ rake (~> 10.0)
33
+ rspec
34
+ secure_jwt!
35
+
36
+ BUNDLED WITH
37
+ 1.16.2
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Jeremy Linder
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,84 @@
1
+ # SecureJwt
2
+
3
+ Signed and encrypted JSON Web Tokens.
4
+
5
+ This library uses envelope encryption for transport of the contained data.
6
+
7
+ This library was written to avoid exiting methods early in case of incorrect signatures or encryption information. This is done to mitigate timing attacks. (However, the library has not been battle tested against timing attack attempts.)
8
+
9
+ This library follows an encrypt-then-sign approach to doing encryption and signing. It also supports a wide variety of encryption mechanisms, but uses AES-256-GCM by default.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'secure_jwt'
17
+ ```
18
+
19
+ ## Usage
20
+
21
+
22
+ ### With minimally protective encryption (should be used only for dev)
23
+
24
+ Encrypted, but unsigned, JWT's can be created in the following manner.
25
+
26
+ ```ruby
27
+ jwt = SecureJwt.encrypt "foo"
28
+
29
+ SecureJwt.decrypt jwt
30
+ ```
31
+
32
+ Encrypted and signed JWT's can be generated as follows.
33
+
34
+ ```ruby
35
+ jwt = SecureJwt.encrypt "foo", "bar"
36
+
37
+ SecureJwt.decrypt jwt, "bar"
38
+ ```
39
+
40
+ ### Better Encryption
41
+
42
+ The above method uses the default key for encryption. This key will not provide any significant data security. You can significantly enhance your encryption scheme by using a more random key. This can be set as the `:master_key` in an option to the encryption and decryption function. (The reason for the name will be made clear a bit later)
43
+
44
+ This looks as following:
45
+
46
+ ```ruby
47
+ jwt = SecureJwt.encrypt "foo", "bar", master_key: YOUR_VERY_RANDOM_MASTER_KEY
48
+
49
+ SecureJwt.decrypt jwt, "bar", master_key: YOUR_VERY_RANDOM_MASTER_KEY
50
+ ```
51
+
52
+ You can also set this master key globally, if you wish as follows:
53
+
54
+ ```ruby
55
+ SecureJwt.configs.master_key = A_STANDARD_MASTER_KEY
56
+ ```
57
+
58
+ ### Advanced / Envelope Encryption
59
+ A major purpose of envelope encryption is to take advantage of security hardware without also needing to send larger portions of data to the encryption hardware. A smaller data key is generated and used to symmetrically encrypt the main data and then that key is encrypted, often asymmetrically and using an HSM, and then sent along with the data.
60
+
61
+ SecureJwt was built to support this type of encryption and to be flexible to allow one to take advantage key management systems of whatever service they are using (AWS, Google, etc).
62
+
63
+ Say we have a cloud encryption function `encrypt_with_key(key, value)` and a decryption function `decrypt_with_key(key, value)`, where the `key` represents the master key to our system and the `value` represents whatever it is we want to encrypt/decrypt. We can then approach it as follows:
64
+
65
+
66
+ ```ruby
67
+ jwt = SecureJwt.encrypt("foo", "bar", master_key: MASTER_KEY) {|value,key| encrypt_with_key key, value }
68
+
69
+ SecureJwt.decrypt(jwt, "bar", master_key: MASTER_KEY) { |value, key| decrypt_with_key key, value }
70
+ ```
71
+
72
+ And that's it. Simple as that.
73
+
74
+ ## Contributing
75
+
76
+ Bug reports and pull requests are welcome on GitHub at https://github.com/deathbyjer/secure_jwt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
77
+
78
+ ## License
79
+
80
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
81
+
82
+ ## Code of Conduct
83
+
84
+ Everyone interacting in the SecureJwt project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/secure_jwt/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "secure_jwt"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/secure_jwt.rb ADDED
@@ -0,0 +1,200 @@
1
+ require "securerandom"
2
+ require 'openssl'
3
+ require "base64"
4
+ require "jwt"
5
+
6
+ require "secure_jwt/version"
7
+ require "secure_jwt/configs"
8
+
9
+ module SecureJwt
10
+
11
+ extend SecureJwt::Configs
12
+
13
+ DEFAULT_ALGORITHMS = {
14
+ jwt: "HS256",
15
+ data: "aes-256-gcm"
16
+ }
17
+
18
+ class << self
19
+ def encrypt(payload, signing_key = nil, options = {}, &data_key_encryptor)
20
+ secure_jwt = JwtTokenImpl.new signing_key, options
21
+ secure_jwt.encrypt payload, options, &data_key_encryptor
22
+ end
23
+
24
+ def decrypt(jwt_token, signing_key = nil, options = {}, &data_key_decryptor)
25
+ secure_jwt = JwtTokenImpl.new signing_key, options
26
+ secure_jwt.decrypt jwt_token, options, &data_key_decryptor
27
+ end
28
+ end
29
+
30
+ class JwtTokenImpl
31
+ def initialize(signing_key, options = {})
32
+ @jwt_algorithm = options[:signing_algorithm] || DEFAULT_ALGORITHMS[:jwt]
33
+ @jwt_algorithm = nil unless signing_key
34
+
35
+ @signing_key = signing_key
36
+
37
+ @data_algorithm = options[:data_algorithm] || DEFAULT_ALGORITHMS[:data]
38
+
39
+ @master_key = options[:master_key] || SecureJwt.config.master_key || "none"
40
+ end
41
+
42
+ def encrypt(payload, options = {}, &data_key_encryptor)
43
+ clear!
44
+
45
+ data_key = generate_data_key &data_key_encryptor
46
+ iv = SecureRandom.random_bytes 12
47
+ encrypted_payload, auth_tag = encrypt_payload payload, {
48
+ key: data_key[:plain],
49
+ iv: iv,
50
+ auth_data: options[:auth_data] || ""
51
+ }
52
+
53
+ ret = encode_jwt encrypted_payload, {
54
+ data_key: data_key[:encrypted],
55
+ iv: iv,
56
+ auth_tag: auth_tag
57
+ }
58
+
59
+ first_error ? raise(first_error) : ret
60
+ end
61
+
62
+ def decrypt(jwt_token, options = {}, &data_key_decryptor)
63
+ clear!
64
+ unformatted_payload, header = decode_jwt jwt_token
65
+
66
+ decrypted_data_key = decrypt_data_key header[:data_key], &data_key_decryptor rescue SecureRandom.random_bytes(12)
67
+
68
+ ret = decrypt_payload unformatted_payload, {
69
+ data_key: decrypted_data_key,
70
+ iv: header[:iv],
71
+ auth_tag: header[:tag],
72
+ auth_data: options[:auth_data] || ""
73
+ }
74
+
75
+ first_error ? raise(first_error) : ret
76
+ end
77
+
78
+ private
79
+
80
+ attr_reader :signing_key
81
+ attr_reader :jwt_algorithm
82
+ attr_reader :data_algorithm
83
+ attr_reader :master_key
84
+
85
+ attr_reader :first_error
86
+
87
+ def clear!
88
+ @first_error = nil
89
+ end
90
+
91
+ def encode_jwt(encrypted_payload, options = {})
92
+ headers = {
93
+ data_key: Base64.urlsafe_encode64(options[:data_key]),
94
+ key: master_key,
95
+ iv: Base64.urlsafe_encode64(options[:iv]),
96
+ }
97
+
98
+ headers[:tag] = Base64.urlsafe_encode64(options[:auth_tag]) if options[:auth_tag]
99
+
100
+ formatted_payload = {
101
+ "payload" => Base64.urlsafe_encode64(encrypted_payload)
102
+ }
103
+
104
+ JWT.encode formatted_payload, signing_key, jwt_algorithm, headers
105
+ end
106
+
107
+ def decode_jwt(jwt_token)
108
+ begin
109
+ payload, header = JWT.decode jwt_token, signing_key, !!jwt_algorithm, algorithm: jwt_algorithm
110
+
111
+ %w(data_key iv tag).each do |key|
112
+ header[key] = Base64.urlsafe_decode64 header[key] rescue ""
113
+ end
114
+
115
+ return Base64.urlsafe_decode64(payload["payload"]), header.transform_keys(&:to_sym)
116
+ rescue JWT::VerificationError, JWT::IncorrectAlgorithm => e
117
+ self.first_error = e
118
+ return {"payload": nil}, { }
119
+ end
120
+ end
121
+
122
+ def encrypt_payload(payload, options = {})
123
+ cipher = OpenSSL::Cipher.new data_algorithm
124
+ cipher.encrypt
125
+
126
+ begin
127
+ cipher.key = options[:key]
128
+ cipher.iv = options[:iv]
129
+ cipher.auth_data = options[:auth_data] if cipher.authenticated?
130
+
131
+ encrypted_payload = cipher.update(payload) + cipher.final
132
+
133
+ return encrypted_payload, cipher.authenticated? ? cipher.auth_tag : nil
134
+ rescue Exception => e
135
+ self.first_error = e
136
+ return "", cipher.authenticated? ? "" : nil
137
+ end
138
+ end
139
+
140
+ def decrypt_payload(unformatted_payload, options = {})
141
+ begin
142
+ cipher = OpenSSL::Cipher.new data_algorithm
143
+ cipher.decrypt
144
+
145
+ cipher.key = options[:data_key] || cipher.random_key
146
+ cipher.iv = options[:iv]
147
+
148
+ if cipher.authenticated?
149
+ cipher.auth_tag = options[:auth_tag]
150
+ cipher.auth_data = options[:auth_data]
151
+ end
152
+
153
+ return cipher.update(unformatted_payload) + cipher.final
154
+ rescue Exception => e
155
+ self.first_error = e
156
+ nil
157
+ end
158
+ end
159
+
160
+ def generate_data_key(&block)
161
+ plain_key = SecureRandom.random_bytes 32
162
+
163
+ encrypted_key = block ? block.call(plain_key, master_key) : default_data_key_encryptor(plain_key)
164
+
165
+ { plain: plain_key, encrypted: encrypted_key, key: master_key }
166
+ end
167
+
168
+ def decrypt_data_key(encrypted_key, &block)
169
+ data_key = block ? block.call(encrypted_key, master_key) : default_data_key_decryptor(encrypted_key) rescue nil
170
+ return data_key unless data_key.nil?
171
+
172
+ self.first_error = OpenSSL::Cipher::CipherError.new("bad decrypt")
173
+ nil
174
+ end
175
+
176
+ DEFAULT_KEY_ALGORITHM = "aes-256-cbc"
177
+ def default_data_key_encryptor(plain_key)
178
+ cipher = OpenSSL::Cipher.new DEFAULT_KEY_ALGORITHM
179
+ cipher.encrypt
180
+
181
+ cipher.key = Digest::SHA2.digest "key:#{master_key}"
182
+ cipher.iv = Digest::MD5.digest "iv:#{master_key}"
183
+ cipher.update(plain_key) + cipher.final
184
+ end
185
+
186
+ def default_data_key_decryptor(encrypted_key)
187
+ cipher = OpenSSL::Cipher.new DEFAULT_KEY_ALGORITHM
188
+ cipher.decrypt
189
+
190
+ cipher.key = Digest::SHA2.digest "key:#{master_key || "none"}"
191
+ cipher.iv = Digest::MD5.digest "iv:#{master_key || "none"}"
192
+ cipher.update(encrypted_key) + cipher.final
193
+ end
194
+
195
+ def first_error=(error)
196
+ return if @first_error
197
+ @first_error = error
198
+ end
199
+ end
200
+ end
@@ -0,0 +1,16 @@
1
+ module SecureJwt::Configs
2
+
3
+ def config
4
+ @config ||= Configurator.new
5
+ end
6
+
7
+ class Configurator
8
+ attr_accessor :master_key
9
+
10
+ private
11
+
12
+ def clear!
13
+ @master_key = nil
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module SecureJwt
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,39 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "secure_jwt/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "secure_jwt"
8
+ spec.version = SecureJwt::VERSION
9
+ spec.authors = ["Jeremy Linder"]
10
+ spec.email = ["linder.jer@gmail.com"]
11
+
12
+ spec.summary = %q{Signed and Encrypted JSON Web Tokens}
13
+ spec.description = %q{Automatically encrypt your JWT's using envelope encryption for added safety}
14
+ spec.homepage = ""
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
31
+ spec.bindir = "exe"
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ["lib"]
34
+
35
+ spec.add_dependency "jwt"
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.16"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: secure_jwt
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Jeremy Linder
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jwt
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: Automatically encrypt your JWT's using envelope encryption for added
56
+ safety
57
+ email:
58
+ - linder.jer@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - CODE_OF_CONDUCT.md
65
+ - Gemfile
66
+ - Gemfile.lock
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/secure_jwt.rb
73
+ - lib/secure_jwt/configs.rb
74
+ - lib/secure_jwt/version.rb
75
+ - secure_jwt.gemspec
76
+ homepage: ''
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.7.7
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Signed and Encrypted JSON Web Tokens
100
+ test_files: []