pkcs7-cryptographer 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c3b2d20fdc0a9804d2e748fbb952795720231ac668903f8e7bc3843194147c5f
4
+ data.tar.gz: 8fe66251f456e340ef033201d4e865920780c89d5c46fc16af49095eb9a373b9
5
+ SHA512:
6
+ metadata.gz: e7285b506e68a68533b7623d83d54a8ab2335505c10fe161784ea6040207fe935890f02e44745b49568605d8fb81653a5ab2b6db1dea59374f666b0103e0076c
7
+ data.tar.gz: 89710d821aa0f16cc5e695d2506718738b5c8c05f3a7bbfb76eb7ef333cbe4abf604016616ca09487150fb8827aad1c0cf0670c4164f659666576b2dd73402a1
@@ -0,0 +1,18 @@
1
+ name: Ruby
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v2
10
+ - name: Set up Ruby
11
+ uses: ruby/setup-ruby@v1
12
+ with:
13
+ ruby-version: 3.0.0
14
+ - name: Run the default task
15
+ run: |
16
+ gem install bundler -v 2.2.3
17
+ bundle install
18
+ bundle exec rake
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 80
14
+
15
+ Metrics/BlockLength:
16
+ IgnoredMethods: ['describe', 'context']
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dms@inpay.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in pkcs7-cryptographer.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,62 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pkcs7-cryptographer (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ coderay (1.1.3)
11
+ diff-lcs (1.4.4)
12
+ method_source (1.0.0)
13
+ parallel (1.20.1)
14
+ parser (3.0.0.0)
15
+ ast (~> 2.4.1)
16
+ pry (0.14.0)
17
+ coderay (~> 1.1)
18
+ method_source (~> 1.0)
19
+ rainbow (3.0.0)
20
+ rake (13.0.3)
21
+ regexp_parser (2.1.1)
22
+ rexml (3.2.4)
23
+ rspec (3.10.0)
24
+ rspec-core (~> 3.10.0)
25
+ rspec-expectations (~> 3.10.0)
26
+ rspec-mocks (~> 3.10.0)
27
+ rspec-core (3.10.1)
28
+ rspec-support (~> 3.10.0)
29
+ rspec-expectations (3.10.1)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.10.0)
32
+ rspec-mocks (3.10.2)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.10.0)
35
+ rspec-support (3.10.2)
36
+ rubocop (0.93.1)
37
+ parallel (~> 1.10)
38
+ parser (>= 2.7.1.5)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ regexp_parser (>= 1.8)
41
+ rexml
42
+ rubocop-ast (>= 0.6.0)
43
+ ruby-progressbar (~> 1.7)
44
+ unicode-display_width (>= 1.4.0, < 2.0)
45
+ rubocop-ast (1.4.1)
46
+ parser (>= 2.7.1.5)
47
+ ruby-progressbar (1.11.0)
48
+ unicode-display_width (1.7.0)
49
+
50
+ PLATFORMS
51
+ x86_64-darwin-19
52
+
53
+ DEPENDENCIES
54
+ bundler (>= 2)
55
+ pkcs7-cryptographer!
56
+ pry
57
+ rake (~> 13.0)
58
+ rspec (~> 3.2)
59
+ rubocop (~> 0.80)
60
+
61
+ BUNDLED WITH
62
+ 2.2.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 dmuneras
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,119 @@
1
+ # PKCS7::Cryptographer
2
+
3
+ Cryptographer is an small utility that allows to encrypt and decrypt messages
4
+ using PKCS7.
5
+
6
+ PKCS7 is used to store signed and encrypted data.It uses aes-256-cbc
7
+ as chipher in the encryption process. If you want to read more information about
8
+ the involved data structures and theory around this, please visit:
9
+
10
+ - https://ruby-doc.org/stdlib-3.0.0/libdoc/openssl/rdoc/OpenSSL.html
11
+ - https://tools.ietf.org/html/rfc5652
12
+
13
+ ## Installation
14
+
15
+ Add this line to your application's Gemfile:
16
+
17
+ ```ruby
18
+ gem 'pkcs7-cryptographer'
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle install
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install pkcs7-cryptographer
28
+
29
+ ## Usage
30
+
31
+ After installing the gem you will have the `PKCS7::Cryptographer` available.
32
+
33
+ `PKCS7::Cryptographer` is a class that provides to public methods:
34
+
35
+ - `sign_and_encrypt`
36
+ - `decrypt_and_verify`
37
+
38
+ Read the following example to get a better undertanding:
39
+
40
+ ```ruby
41
+
42
+ # This script assumes you have a read_file method to read the certificates and
43
+ # keys.
44
+
45
+ # What we are going to do is sign an encrypt a message from the CA Authority
46
+ # and read it from the Client:
47
+
48
+ # Certificate Authority PKI data
49
+ CA_KEY = read_file("ca.key")
50
+ CA_CERTIFICATE = read_file("ca.crt")
51
+
52
+ # Client PKI data
53
+ CLIENT_CERTIFICATE = read_file("client.crt")
54
+ CLIENT_KEY = read_file("client.key")
55
+
56
+ # SEND MESSAGE TO THE CLIENT
57
+ # ----------------------------------------------------------------------------
58
+ # Encrypt a message in the CA Authority API to be sent to the Client.
59
+ # Only the client can read the message since the required public
60
+ # certificate to read it is the client certificate.
61
+
62
+ # It could be read if the CA_STORE of the reader has certificate of the
63
+ # CA that signed the client certificate as trusted.
64
+
65
+ # Client <------------------------- CA Authority API
66
+ encrypted_data = cryptographer.sign_and_encrypt(
67
+ data: "Atletico Nacional de Medellin",
68
+ key: CA_KEY,
69
+ certificate: CA_CERTIFICATE,
70
+ public_certificate: CLIENT_CERTIFICATE
71
+ )
72
+
73
+ # READ MESSAGE IN CLIENT
74
+ # ----------------------------------------------------------------------------
75
+ # Store of trusted certificates
76
+ CA_STORE = OpenSSL::X509::Store.new
77
+ CA_STORE.add_cert(OpenSSL::X509::Certificate.new(CA_CERTIFICATE))
78
+
79
+ decrypted_data = cryptographer.decrypt_and_verify(
80
+ data: encrypted_data,
81
+ key: CLIENT_KEY,
82
+ certificate: CLIENT_CERTIFICATE,
83
+ public_certificate: CA_CERTIFICATE,
84
+ ca_store: CA_STORE
85
+ )
86
+
87
+ # decrypted_data returns: "Atletico Nacional de Medellin"
88
+ ```
89
+
90
+ ## Development
91
+
92
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run
93
+ `rake spec` to run the tests. You can also run `bin/console` for an interactive
94
+ prompt that will allow you to experiment.
95
+
96
+ To install this gem onto your local machine, run `bundle exec rake install`.
97
+ To release a new version, update the version number in `version.rb`, and then
98
+ run `bundle exec rake release`, which will create a git tag for the version,
99
+ push git commits and the created tag, and push the `.gem` file to
100
+ [rubygems.org](https://rubygems.org).
101
+
102
+ ## Contributing
103
+
104
+ Bug reports and pull requests are welcome on GitHub at
105
+ https://github.com/dmuneras/pkcs7-cryptographer. This project is intended
106
+ to be a safe, welcoming space for collaboration, and contributors are expected
107
+ to adhere to the
108
+ [code of conduct](https://github.com/dmuneras/pkcs7-cryptographer/blob/master/CODE_OF_CONDUCT.md).
109
+
110
+ ## License
111
+
112
+ The gem is available as open source under the terms of the
113
+ [MIT License](https://opensource.org/licenses/MIT).
114
+
115
+ ## Code of Conduct
116
+
117
+ Everyone interacting in the Pkcs7::Cryptographer project's codebases, issue
118
+ trackers, chat rooms and mailing lists is expected to follow the
119
+ [code of conduct](https://github.com/dmuneras/pkcs7-cryptographer/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "pkcs7/cryptographer"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require "irb"
15
+ 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
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "openssl"
4
+ require_relative "cryptographer/version"
5
+
6
+ module PKCS7
7
+ ###
8
+ # Cryptographer is an small utility that allows to encrypt and decrypt
9
+ # messages using PKCS7. PKCS7 is used to store signed and encrypted data.
10
+ # It uses aes-256-cbc as chipher in the encryption process.
11
+ # If you want to read more information about the involved data structures
12
+ # and theory around this, please visit:
13
+ # - https://ruby-doc.org/stdlib-3.0.0/libdoc/openssl/rdoc/OpenSSL.html
14
+ # - https://tools.ietf.org/html/rfc5652
15
+ ###
16
+ class Cryptographer
17
+ # PUBLIC METHODS
18
+ # --------------------------------------------------------------------------
19
+
20
+ ###
21
+ # @description: Take some string data, this method encrypts and sign the
22
+ # data using the information given.
23
+ # @param [String] data
24
+ # @param [String|OpenSSL::PKey::RSA] key
25
+ # @param [String|OpenSSL::X509::Certificate] certificate
26
+ # @param [String|OpenSSL::X509::Certificate] public_certificate
27
+ # @return [String] encrypted data
28
+ ###
29
+ def sign_and_encrypt(
30
+ data:,
31
+ key:,
32
+ certificate:,
33
+ public_certificate:
34
+ )
35
+ key = rsa_key(key)
36
+ certificate = x509_certificate(certificate)
37
+ public_certificate = x509_certificate(public_certificate)
38
+ signed_data = OpenSSL::PKCS7.sign(certificate, key, data)
39
+
40
+ encrypted_data = OpenSSL::PKCS7.encrypt(
41
+ [public_certificate],
42
+ signed_data.to_pem,
43
+ OpenSSL::Cipher.new("aes-256-cbc")
44
+ )
45
+
46
+ encrypted_data.to_pem
47
+ end
48
+
49
+ ###
50
+ # @description: Take some PKCS7 encrypted data, this method decrypt the
51
+ # data using the information given and verify the signature to ensure only
52
+ # is read by the intented audience.
53
+ # @param [String|OpenSSL::PKCS7] data
54
+ # @param [String|OpenSSL::PKey::RSA] key
55
+ # @param [String|OpenSSL::X509::Certificate] certificate
56
+ # @param [String|OpenSSL::X509::Certificate] public_certificate
57
+ # @param [OpenSSL::X509::Store] ca_store
58
+ # @return [String] decrypted data
59
+ ###
60
+ def decrypt_and_verify(
61
+ data:,
62
+ key:,
63
+ certificate:,
64
+ public_certificate:,
65
+ ca_store:
66
+ )
67
+ key = rsa_key(key)
68
+ certificate = x509_certificate(certificate)
69
+ public_certificate = x509_certificate(public_certificate)
70
+ encrypted_data = pkcs7(data)
71
+ decrypted_data = encrypted_data.decrypt(key, certificate)
72
+ signed_data = OpenSSL::PKCS7.new(decrypted_data)
73
+
74
+ return false unless signed_data.verify([public_certificate], ca_store)
75
+
76
+ signed_data.data
77
+ end
78
+
79
+ # PRIVATE METHODS
80
+ # --------------------------------------------------------------------------
81
+ private
82
+
83
+ def x509_certificate(certificate)
84
+ wrap_in_class_or_return(certificate, OpenSSL::X509::Certificate)
85
+ end
86
+
87
+ def rsa_key(key)
88
+ wrap_in_class_or_return(key, OpenSSL::PKey::RSA)
89
+ end
90
+
91
+ def pkcs7(pkcs7)
92
+ wrap_in_class_or_return(pkcs7, OpenSSL::PKCS7)
93
+ end
94
+
95
+ def wrap_in_class_or_return(data, klass)
96
+ data.instance_of?(klass) ? data : klass.new(data)
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PKCS7
4
+ class Cryptographer
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/pkcs7/cryptographer/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "pkcs7-cryptographer"
7
+ spec.version = PKCS7::Cryptographer::VERSION
8
+ spec.authors = ["Daniel Munera Sanchez"]
9
+ spec.email = ["dmunera119@gmail.com"]
10
+
11
+ spec.summary = "PKCS7 Cryptographer"
12
+ spec.description =
13
+ "Utility to encrypt and decrypt messages using OpenSSL::PKCS7"
14
+ spec.homepage = "https://github.com/dmuneras/pkcs7-cryptographer"
15
+ spec.license = "MIT"
16
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = "https://github.com/dmuneras/pkcs7-cryptographer"
20
+
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject do |f|
23
+ f.match(%r{\A(?:test|spec|features)/})
24
+ end
25
+ end
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", ">= 2"
31
+ spec.add_development_dependency "pry"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
+ spec.add_development_dependency "rspec", "~> 3.2"
34
+ spec.add_development_dependency "rubocop", "~> 0.80"
35
+ end
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pkcs7-cryptographer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Munera Sanchez
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.80'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.80'
83
+ description: Utility to encrypt and decrypt messages using OpenSSL::PKCS7
84
+ email:
85
+ - dmunera119@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".github/workflows/main.yml"
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".rubocop.yml"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - Gemfile.lock
97
+ - LICENSE.txt
98
+ - README.md
99
+ - Rakefile
100
+ - bin/console
101
+ - bin/setup
102
+ - lib/pkcs7/cryptographer.rb
103
+ - lib/pkcs7/cryptographer/version.rb
104
+ - pkcs7-cryptographer.gemspec
105
+ homepage: https://github.com/dmuneras/pkcs7-cryptographer
106
+ licenses:
107
+ - MIT
108
+ metadata:
109
+ homepage_uri: https://github.com/dmuneras/pkcs7-cryptographer
110
+ source_code_uri: https://github.com/dmuneras/pkcs7-cryptographer
111
+ post_install_message:
112
+ rdoc_options: []
113
+ require_paths:
114
+ - lib
115
+ required_ruby_version: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: 2.4.0
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubygems_version: 3.2.3
127
+ signing_key:
128
+ specification_version: 4
129
+ summary: PKCS7 Cryptographer
130
+ test_files: []