izokatu 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +3 -0
- data.tar.gz.sig +2 -0
- data/.gitignore +19 -0
- data/.rspec +3 -0
- data/.rubocop.yml +42 -0
- data/.yardopts +1 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +86 -0
- data/LICENSE.txt +21 -0
- data/README.md +152 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/certs/mongalless.pem +26 -0
- data/izokatu.gemspec +47 -0
- data/lib/izokatu.rb +423 -0
- data/lib/izokatu/action_call_options_selector.rb +214 -0
- data/lib/izokatu/action_call_selector.rb +132 -0
- data/lib/izokatu/callable.rb +13 -0
- data/lib/izokatu/ciphers.rb +18 -0
- data/lib/izokatu/decrypter.rb +62 -0
- data/lib/izokatu/encrypter.rb +67 -0
- data/lib/izokatu/exporter.rb +36 -0
- data/lib/izokatu/exporter/file_exporter.rb +36 -0
- data/lib/izokatu/exporter/function_exporter.rb +16 -0
- data/lib/izokatu/exporter/stdout_exporter.rb +18 -0
- data/lib/izokatu/helpers.rb +213 -0
- data/lib/izokatu/importer/file_importer.rb +47 -0
- data/lib/izokatu/importer/function_importer.rb +36 -0
- data/lib/izokatu/izokatu_elements_requires.rb +46 -0
- data/lib/izokatu/keys_generator.rb +53 -0
- data/lib/izokatu/openssl/private_key/auth/ccm/decrypter.rb +67 -0
- data/lib/izokatu/openssl/private_key/auth/ccm/encrypter.rb +56 -0
- data/lib/izokatu/openssl/private_key/auth/decrypter.rb +79 -0
- data/lib/izokatu/openssl/private_key/auth/encrypter.rb +69 -0
- data/lib/izokatu/openssl/private_key/default/decrypter.rb +75 -0
- data/lib/izokatu/openssl/private_key/default/encrypter.rb +75 -0
- data/lib/izokatu/openssl/public_key/ec/decrypter.rb +105 -0
- data/lib/izokatu/openssl/public_key/ec/encrypter.rb +106 -0
- data/lib/izokatu/openssl/public_key/ec/keys_generator.rb +77 -0
- data/lib/izokatu/openssl/public_key/rsa/decrypter.rb +53 -0
- data/lib/izokatu/openssl/public_key/rsa/encrypter.rb +55 -0
- data/lib/izokatu/openssl/public_key/rsa/keys_generator.rb +64 -0
- data/lib/izokatu/rbnacl/decrypter.rb +42 -0
- data/lib/izokatu/rbnacl/encrypter.rb +45 -0
- data/lib/izokatu/rbnacl/private_key/decrypter.rb +56 -0
- data/lib/izokatu/rbnacl/private_key/encrypter.rb +61 -0
- data/lib/izokatu/rbnacl/public_key/decrypter.rb +51 -0
- data/lib/izokatu/rbnacl/public_key/encrypter.rb +61 -0
- data/lib/izokatu/rbnacl/public_key/keys_generator.rb +33 -0
- data/lib/izokatu/version.rb +6 -0
- metadata +315 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 25af5e139e29b57289ca4efc801f8206f75dc31cab2389fec01f4ca0ff101e70
|
4
|
+
data.tar.gz: '08ff6be0312ec52aa45ff284e8690234b207e6661c16561681dca9fbebd2eafb'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b082f9d58d12e380ad5d8af4672dc442f52e8d27129420841391c615340b7d6f822859214789901af8fa11a4be4214abeacd2398f88ae6ac179e9d33fabd793f
|
7
|
+
data.tar.gz: 056f597f4ec9b07bd02f32626ed5c76920738569a20798721d43962f6b4a9bb18ec64ca50da30d19a7bf834101b2699b760caa5bf8d67c15c66a4331eb2b63cb
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
���wI�����ܸ������ӱvr�h��]�q��y7d=G D|Qxcw:�%�UK�
|
2
|
+
���r>�!�ؿ�)��Cg��¦��]����G��qj����P���Wng���澤B��=KP���+@:�cG�2��d�n�p�]r��'��p%��.��}���;�˝C(���<��**�V4��� �)�g�oq<��R���L�`�Q�uI��� >C��Ø�X�Nl�| ��Q��8)*2�U!*ք\���H>P�}����'_��\^tK踡�c�2�-�K�VK@'ý_��$8F�I\�?t���a��-Z�G�m�n��� Q��u�ë���x��{P]��>��"�S���'|5Y��]3�d�^ё����$~:�^
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# The behavior of RuboCop can be controlled via the .rubocop.yml
|
2
|
+
# configuration file. It makes it possible to enable/disable
|
3
|
+
# certain cops (checks) and to alter their behavior if they accept
|
4
|
+
# any parameters. The file can be placed either in your home
|
5
|
+
# directory or in some project directory.
|
6
|
+
#
|
7
|
+
# RuboCop will start looking for the configuration file in the directory
|
8
|
+
# where the inspected file is and continue its way up to the root directory.
|
9
|
+
#
|
10
|
+
# See https://docs.rubocop.org/rubocop/configuration
|
11
|
+
require:
|
12
|
+
- rubocop-rspec
|
13
|
+
- rubocop-performance
|
14
|
+
|
15
|
+
AllCops:
|
16
|
+
Exclude:
|
17
|
+
- '.git/**/*'
|
18
|
+
- 'spec/spec_helper.rb'
|
19
|
+
NewCops: enable
|
20
|
+
|
21
|
+
# A little extending of default value 3 -> 5
|
22
|
+
RSpec/NestedGroups:
|
23
|
+
Max: 5
|
24
|
+
|
25
|
+
# A little extending of default value 5 -> 7
|
26
|
+
RSpec/MultipleMemoizedHelpers:
|
27
|
+
Max: 7
|
28
|
+
|
29
|
+
# A little extending of default value 120 -> 160
|
30
|
+
Layout/LineLength:
|
31
|
+
Max: 160
|
32
|
+
|
33
|
+
# A little extending of default value 5 -> 6
|
34
|
+
Metrics/ParameterLists:
|
35
|
+
Max: 6
|
36
|
+
|
37
|
+
Layout/ClassStructure:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Metrics/BlockLength:
|
41
|
+
Enabled: false
|
42
|
+
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--private --protected - README.md
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
izokatu (0.1.0)
|
5
|
+
ecies (~> 0.3.0)
|
6
|
+
openssl (~> 2.2)
|
7
|
+
rake (~> 13.0, >= 13.0.1)
|
8
|
+
rbnacl (~> 7.1, >= 7.1.1)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
ast (2.4.1)
|
14
|
+
bundler-audit (0.7.0.1)
|
15
|
+
bundler (>= 1.2.0, < 3)
|
16
|
+
thor (>= 0.18, < 2)
|
17
|
+
contracts (0.14.0)
|
18
|
+
diff-lcs (1.4.4)
|
19
|
+
docile (1.3.2)
|
20
|
+
ecies (0.3.0)
|
21
|
+
ffi (1.13.1)
|
22
|
+
openssl (2.2.0)
|
23
|
+
parallel (1.20.1)
|
24
|
+
parser (2.7.2.0)
|
25
|
+
ast (~> 2.4.1)
|
26
|
+
rainbow (3.0.0)
|
27
|
+
rake (13.0.1)
|
28
|
+
rbnacl (7.1.1)
|
29
|
+
ffi
|
30
|
+
regexp_parser (1.8.2)
|
31
|
+
rexml (3.2.4)
|
32
|
+
rspec (3.10.0)
|
33
|
+
rspec-core (~> 3.10.0)
|
34
|
+
rspec-expectations (~> 3.10.0)
|
35
|
+
rspec-mocks (~> 3.10.0)
|
36
|
+
rspec-core (3.10.0)
|
37
|
+
rspec-support (~> 3.10.0)
|
38
|
+
rspec-expectations (3.10.0)
|
39
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
40
|
+
rspec-support (~> 3.10.0)
|
41
|
+
rspec-mocks (3.10.0)
|
42
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
43
|
+
rspec-support (~> 3.10.0)
|
44
|
+
rspec-support (3.10.0)
|
45
|
+
rubocop (0.89.1)
|
46
|
+
parallel (~> 1.10)
|
47
|
+
parser (>= 2.7.1.1)
|
48
|
+
rainbow (>= 2.2.2, < 4.0)
|
49
|
+
regexp_parser (>= 1.7)
|
50
|
+
rexml
|
51
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
52
|
+
ruby-progressbar (~> 1.7)
|
53
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
54
|
+
rubocop-ast (0.8.0)
|
55
|
+
parser (>= 2.7.1.5)
|
56
|
+
rubocop-performance (1.8.1)
|
57
|
+
rubocop (>= 0.87.0)
|
58
|
+
rubocop-ast (>= 0.4.0)
|
59
|
+
rubocop-rspec (1.44.1)
|
60
|
+
rubocop (~> 0.87)
|
61
|
+
rubocop-ast (>= 0.7.1)
|
62
|
+
ruby-progressbar (1.10.1)
|
63
|
+
simplecov (0.19.1)
|
64
|
+
docile (~> 1.1)
|
65
|
+
simplecov-html (~> 0.11)
|
66
|
+
simplecov-html (0.12.3)
|
67
|
+
thor (1.0.1)
|
68
|
+
unicode-display_width (1.7.0)
|
69
|
+
yard (0.9.25)
|
70
|
+
|
71
|
+
PLATFORMS
|
72
|
+
ruby
|
73
|
+
|
74
|
+
DEPENDENCIES
|
75
|
+
bundler-audit (~> 0.7.0.1)
|
76
|
+
contracts (~> 0.14.0)
|
77
|
+
izokatu!
|
78
|
+
rspec (~> 3.9)
|
79
|
+
rubocop (~> 0.89.1)
|
80
|
+
rubocop-performance (~> 1.7, >= 1.7.1)
|
81
|
+
rubocop-rspec (~> 1.43, >= 1.43.1)
|
82
|
+
simplecov (~> 0.19.1)
|
83
|
+
yard (~> 0.9)
|
84
|
+
|
85
|
+
BUNDLED WITH
|
86
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Yevhenii Maiorov
|
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,152 @@
|
|
1
|
+
# Izokatu
|
2
|
+
|
3
|
+
Izokatu is Ruby library that provides abstact interface for private-key and public-key cryptography using RbNaCl and OpenSSL.
|
4
|
+
|
5
|
+
## Features
|
6
|
+
- Unified interaction with RbNaCL and OpenSSL via `Izokatu#call`
|
7
|
+
- Strong defaults:
|
8
|
+
- RbNaCl private-key cryptography - `XChaCha20Poly1305IETF`
|
9
|
+
- RbNaCl public-key cryptography - `Curve25519XSalsa20Poly1305`
|
10
|
+
- OpenSSL private-key cryptography - `AES-256-GCM`
|
11
|
+
- OpenSSL public-key RSA cryptography - `4096 bit key`
|
12
|
+
- OpenSSL hybrid EC (ECIES) cryptography:
|
13
|
+
- Public-key part - `secp521r1`
|
14
|
+
- Private-key part - `AES-256-CTR`
|
15
|
+
- 2 Import modes: `:function`(default, gets data from options), `:file`
|
16
|
+
- 3 Export modes: `:function`(default, just returns result), `:file`, `:stdout`
|
17
|
+
|
18
|
+
## Installation
|
19
|
+
|
20
|
+
`gem install izokatu`
|
21
|
+
|
22
|
+
If you have trouble installing the gem
|
23
|
+
- try adding izokatu to your Gemfile and bundling.
|
24
|
+
- file a ticket on the issues page.
|
25
|
+
|
26
|
+
Izokatu is [cryptographically signed](http://guides.rubygems.org/security/).
|
27
|
+
To be sure the gem you install hasn't been tampered with:
|
28
|
+
- Add my public key (if you haven't already) as a trusted certificate `gem cert --add <(curl -Ls https://gitlab.com/mongalless/izokatu/-/raw/master/certs/izokatu_public_cert.pem)`
|
29
|
+
- `gem install izokatu -P MediumSecurity`
|
30
|
+
|
31
|
+
The MediumSecurity trust profile will verify signed gems, but allow the installation of unsigned dependencies.
|
32
|
+
|
33
|
+
This is necessary because not all of Izokatu’s dependencies are signed, so we cannot use HighSecurity.
|
34
|
+
|
35
|
+
## Usage
|
36
|
+
|
37
|
+
RbNaCl private key cryptography
|
38
|
+
```ruby
|
39
|
+
encrypted_data = Izokatu.call(clear_data_string: 'Some data')
|
40
|
+
Izokatu.call(action: :decryption, **encrypted_data)
|
41
|
+
=> {:decrypted_data_string=>"Some data"}
|
42
|
+
```
|
43
|
+
|
44
|
+
RbNaCl public key cryptography
|
45
|
+
```ruby
|
46
|
+
keypair1 = Izokatu.call(action: :keys_generation, mode: :public_key)
|
47
|
+
keypair2 = Izokatu.call(action: :keys_generation, mode: :public_key)
|
48
|
+
encrypted_data = Izokatu.call(
|
49
|
+
clear_data_string: 'Some data',
|
50
|
+
mode: :public_key,
|
51
|
+
public_key: keypair1[:public_key],
|
52
|
+
private_key: keypair2[:private_key]
|
53
|
+
)
|
54
|
+
Izokatu.call(
|
55
|
+
action: :decryption,
|
56
|
+
mode: :public_key,
|
57
|
+
**encrypted_data,
|
58
|
+
public_key: keypair2[:public_key],
|
59
|
+
private_key: keypair1[:private_key]
|
60
|
+
)
|
61
|
+
=> {:decrypted_data_string=>"Some data"}
|
62
|
+
```
|
63
|
+
|
64
|
+
OpenSSL private key cryptography
|
65
|
+
```ruby
|
66
|
+
encrypted_data = Izokatu.call(
|
67
|
+
clear_data_string: 'Some data',
|
68
|
+
via: :openssl,
|
69
|
+
cipher: 'AES-256-GCM'
|
70
|
+
)
|
71
|
+
Izokatu.call(
|
72
|
+
action: :decryption,
|
73
|
+
**encrypted_data,
|
74
|
+
via: :openssl,
|
75
|
+
cipher: 'AES-256-GCM'
|
76
|
+
)
|
77
|
+
=> {:decrypted_data_string=>"Some data"}
|
78
|
+
```
|
79
|
+
|
80
|
+
OpenSSL EC public key cryptography
|
81
|
+
```ruby
|
82
|
+
keypair_options = {
|
83
|
+
action: :keys_generation,
|
84
|
+
mode: :public_key,
|
85
|
+
via: :openssl
|
86
|
+
}
|
87
|
+
keypair1 = Izokatu.call(keypair_options)
|
88
|
+
keypair2 = Izokatu.call(keypair_options)
|
89
|
+
encrypted_data = Izokatu.call(
|
90
|
+
clear_data_string: 'Some data',
|
91
|
+
mode: :public_key,
|
92
|
+
via: :openssl,
|
93
|
+
public_key:
|
94
|
+
keypair1[:public_key],
|
95
|
+
private_key: keypair2[:private_key]
|
96
|
+
)
|
97
|
+
Izokatu.call(
|
98
|
+
action: :decryption,
|
99
|
+
mode: :public_key,
|
100
|
+
via: :openssl,
|
101
|
+
**encrypted_data,
|
102
|
+
public_key: keypair2[:public_key],
|
103
|
+
private_key: keypair1[:private_key]
|
104
|
+
)
|
105
|
+
=> {:decrypted_data_string=>"Some data"}
|
106
|
+
```
|
107
|
+
|
108
|
+
OpenSSL RSA public key cryptography
|
109
|
+
```ruby
|
110
|
+
keypair_options = {
|
111
|
+
action: :keys_generation,
|
112
|
+
mode: :public_key,
|
113
|
+
via: :openssl,
|
114
|
+
asym_cipher_type: :rsa,
|
115
|
+
bit_number: 4096
|
116
|
+
}
|
117
|
+
keypair1 = Izokatu.call(keypair_options)
|
118
|
+
keypair2 = Izokatu.call(keypair_options)
|
119
|
+
encrypted_data = Izokatu.call(
|
120
|
+
clear_data_string: 'Some data',
|
121
|
+
mode: :public_key,
|
122
|
+
via: :openssl,
|
123
|
+
public_key: keypair1[:public_key],
|
124
|
+
private_key: keypair2[:private_key],
|
125
|
+
asym_cipher_type: :rsa
|
126
|
+
)
|
127
|
+
Izokatu.call(
|
128
|
+
action: :decryption,
|
129
|
+
mode: :public_key,
|
130
|
+
via: :openssl,
|
131
|
+
**encrypted_data,
|
132
|
+
public_key: keypair2[:public_key],
|
133
|
+
private_key: keypair1[:private_key],
|
134
|
+
asym_cipher_type: :rsa
|
135
|
+
)
|
136
|
+
=> {:decrypted_data_string=>"Some data"}
|
137
|
+
```
|
138
|
+
|
139
|
+
## Development
|
140
|
+
|
141
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
142
|
+
|
143
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
144
|
+
|
145
|
+
## Contributing
|
146
|
+
|
147
|
+
Bug reports and pull requests are welcome on GitHub at https://gitlab.com/mongalless/izokatu.
|
148
|
+
|
149
|
+
## License
|
150
|
+
|
151
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
152
|
+
|
data/Rakefile
ADDED
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 'izokatu'
|
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,26 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIEWjCCAsKgAwIBAgIBATANBgkqhkiG9w0BAQsFADArMSkwJwYDVQQDDCBoaXRz
|
3
|
+
dGFsa2VyNy9EQz1wcm90b25tYWlsL0RDPWNvbTAeFw0yMDExMjkxMjE5MzJaFw0y
|
4
|
+
MTExMjkxMjE5MzJaMCsxKTAnBgNVBAMMIGhpdHN0YWxrZXI3L0RDPXByb3Rvbm1h
|
5
|
+
aWwvREM9Y29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAuDgvPY+H
|
6
|
+
5a3R819tNshtIMrOxLjVZSXNrMz3e6ocBzWNnwbikPf+ykZI71/Z2AMANRl3h2dm
|
7
|
+
jxlOtw0LwgUVg/9kXFJdSkKW1ahUYk4TDifTLsc+m9zhEO4HaqXNAQWdlB7xFKpO
|
8
|
+
REw0qvFOayXPDxFOdJhYgSJ3GyhmV2sbyCyqL8+eDzE2Y9p/XpAKv4MgLKzF8dEM
|
9
|
+
4RQlKZgZNmcaTYKrfvXBLRNv3G3/mUlu8xuiKMEjX74z1+5go0haKSz51UxekckR
|
10
|
+
VD1iKU7bjQXkOoucPwre5wTqXWppH80tPO4N4J0XKUSWX0QJt2obGZlBXhgF0BsR
|
11
|
+
Wd9HxYqdkeVm9aFf58g2XOtpIOpV13IJ253mrftxhpgRVP0dOHXy/C+W/F+At75O
|
12
|
+
7OfUUjU/1DoMNL3kbtNThtuwE/gp87/+PttPlIVUA+ejaELQlb1bvUtRaOW/4ZJj
|
13
|
+
XdHeCpJKvhRPOLffmW4e/oEWq7L+PxaBypKRdV4S0ij4AKVCrJ2epN7zAgMBAAGj
|
14
|
+
gYgwgYUwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFEsBiliinio0
|
15
|
+
zcL8dE5paoSgYHRwMCUGA1UdEQQeMByBGmhpdHN0YWxrZXI3QHByb3Rvbm1haWwu
|
16
|
+
Y29tMCUGA1UdEgQeMByBGmhpdHN0YWxrZXI3QHByb3Rvbm1haWwuY29tMA0GCSqG
|
17
|
+
SIb3DQEBCwUAA4IBgQCAnqQbkqY6AwlMUesfX9++CsqmU+Q1lKwvZSjeSjfCFU4p
|
18
|
+
TpNay96jd/7hRD+kydh0ghmLauSJwYml5lN4d1USaMbejPCYGUZHL5zOFuL8MRRY
|
19
|
+
aaozl5mdyHwPzNdzn5tDgT7553MTFDt7n4luSis+V1d4ycKL5gbpYslmDjtJzOi6
|
20
|
+
Y1v0NUc7m2A2MOJgzVuRsDjnWJaRF7xzawbGJBchU48jQ4hu6a5kq9gjOg8ybPiq
|
21
|
+
OX4qrBOJfNT0EG/2+TuRFU+8IsXvLNmrBVeaUa3CFEA4hrWQLQU2/SNxdvpuXal5
|
22
|
+
Kc0vOe/EBftWGcQtPCEyE14uImM5gc5JOKJu1nHJkpfoUPbZmDzzObQHQ22GDuwR
|
23
|
+
kgsSHaCAYaBtkQ9Lkk1ccZwb1WwpucXBRd2NZrO7c7DJQLAuI3CWS/Iljhow0quq
|
24
|
+
rhxIlERIpUf5MM1tTlt/k9LnjYlvAqiDHgIXWKcxJaZ0/fLq9lYgi/FTZhL07L2j
|
25
|
+
5MF2YkFP1yWl6vQ9biw=
|
26
|
+
-----END CERTIFICATE-----
|
data/izokatu.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/izokatu/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'izokatu'
|
7
|
+
spec.version = Izokatu::VERSION
|
8
|
+
spec.authors = ['mongalless']
|
9
|
+
|
10
|
+
spec.summary = 'Ruby library that provides abstact interface for private-key and public-key cryptography using RbNaCl and OpenSSL'
|
11
|
+
spec.homepage = 'https://gitlab.com/mongalless/izokatu'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.1')
|
14
|
+
|
15
|
+
spec.metadata = {
|
16
|
+
"documentation_uri" => "https://www.rubydoc.info/gems/izokatu",
|
17
|
+
"homepage_uri" => spec.homepage,
|
18
|
+
"source_code_uri" => spec.homepage,
|
19
|
+
}
|
20
|
+
|
21
|
+
spec.cert_chain = ['certs/mongalless.pem']
|
22
|
+
spec.signing_key = File.expand_path("~/.ssh/mongalless_private_key.pem") if $0 =~ /gem\z/
|
23
|
+
|
24
|
+
# Specify which files should be added to the gem when it is released.
|
25
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
26
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
27
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
28
|
+
end
|
29
|
+
spec.bindir = 'exe'
|
30
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
|
+
spec.require_paths = ['lib']
|
32
|
+
|
33
|
+
spec.extra_rdoc_files = ['README.md']
|
34
|
+
|
35
|
+
spec.add_dependency 'ecies', '~> 0.3.0'
|
36
|
+
spec.add_dependency 'openssl', '~> 2.2'
|
37
|
+
spec.add_dependency 'rake', '~> 13.0', '>= 13.0.1'
|
38
|
+
spec.add_dependency 'rbnacl', '~> 7.1', '>= 7.1.1'
|
39
|
+
spec.add_dependency 'contracts', '~> 0.14.0'
|
40
|
+
spec.add_development_dependency 'bundler-audit', '~> 0.7.0.1'
|
41
|
+
spec.add_development_dependency 'rspec', '~> 3.9'
|
42
|
+
spec.add_development_dependency 'rubocop', '~> 0.89.1'
|
43
|
+
spec.add_development_dependency 'rubocop-performance', '~> 1.7', '>= 1.7.1'
|
44
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.43', '>= 1.43.1'
|
45
|
+
spec.add_development_dependency 'simplecov', '~> 0.19.1'
|
46
|
+
spec.add_development_dependency 'yard', '~> 0.9'
|
47
|
+
end
|