hcipher 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: 3b0bfb3c946457179aadd69a3e8105a8c6b246bc4351fd75d4abe25a92793e12
4
+ data.tar.gz: 0dc389e3a29de3d64004cd65020d523caf90d1409ef34a1888a85579a7ac3111
5
+ SHA512:
6
+ metadata.gz: 1d8a66d2eb124126fef9d4b00ba5c7beea3e262c0ba5bec587c3d0622b28be0e7938c5ec3393f81593d2a95eda060385c506368365dbf9c73a07e61ed50a62bc
7
+ data.tar.gz: ad275914e23aae5dd719d9d333352996552415f0d86799536597419270d9c90f37e8866b363c0c6498f131925c223e3c16d9b5a770b7607e912d4cba1073788c
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/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-09-05
4
+
5
+ - Initial release
@@ -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 TODO: Write your email address. 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,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in hcipher.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hcipher (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (5.2.6)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ i18n (>= 0.7, < 2)
12
+ minitest (~> 5.1)
13
+ tzinfo (~> 1.1)
14
+ concurrent-ruby (1.1.9)
15
+ diff-lcs (1.4.4)
16
+ i18n (1.8.10)
17
+ concurrent-ruby (~> 1.0)
18
+ minitest (5.14.4)
19
+ rake (13.0.6)
20
+ rspec (3.10.0)
21
+ rspec-core (~> 3.10.0)
22
+ rspec-expectations (~> 3.10.0)
23
+ rspec-mocks (~> 3.10.0)
24
+ rspec-core (3.10.1)
25
+ rspec-support (~> 3.10.0)
26
+ rspec-expectations (3.10.1)
27
+ diff-lcs (>= 1.2.0, < 2.0)
28
+ rspec-support (~> 3.10.0)
29
+ rspec-mocks (3.10.2)
30
+ diff-lcs (>= 1.2.0, < 2.0)
31
+ rspec-support (~> 3.10.0)
32
+ rspec-support (3.10.2)
33
+ thread_safe (0.3.6)
34
+ tzinfo (1.2.9)
35
+ thread_safe (~> 0.1)
36
+
37
+ PLATFORMS
38
+ x86_64-linux
39
+
40
+ DEPENDENCIES
41
+ activesupport (~> 5.0, >= 5.0.0.1)
42
+ hcipher!
43
+ rake (~> 13.0)
44
+ rspec (~> 3.0)
45
+
46
+ BUNDLED WITH
47
+ 2.2.15
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 TODO: Write your name
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,59 @@
1
+ # Hcipher
2
+
3
+ Ruby gem for encrypting and decrypting text using hill cipher algorithm
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'hcipher'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install hcipher
20
+
21
+ ## Usage
22
+
23
+ Run rake task to generate key. Input an integer in place of n, this will return an n x n matrix that has been converted to a string.
24
+
25
+ $ rake hcipher:generate_key[n]
26
+
27
+ Place hcipher key inside your application, for example in the credentials.
28
+
29
+ Run this script to encrypt your text.
30
+
31
+ ```ruby
32
+ Hcipher::Cipher.encrypt(text, key)
33
+ ```
34
+
35
+ Run this script to decrypt your encrypted text.
36
+
37
+ ```ruby
38
+ Hcipher::Cipher.decrypt(encrypted_text, key)
39
+ ```
40
+
41
+ If you need an example application, see this [simple application](https://github.com/arssy/hcipher_apptest)
42
+
43
+ ## Development
44
+
45
+ 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.
46
+
47
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
48
+
49
+ ## Contributing
50
+
51
+ Bug reports and pull requests are welcome on GitHub at https://github.com/arssy/hcipher. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/arssy/hcipher/blob/master/CODE_OF_CONDUCT.md).
52
+
53
+ ## License
54
+
55
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
56
+
57
+ ## Code of Conduct
58
+
59
+ Everyone interacting in the Hcipher project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/arssy/hcipher/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+ require "hcipher"
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ task default: :spec
10
+
11
+ namespace :hcipher do
12
+ desc "Generate a key for hill cipher"
13
+ task :generate_key, [:size] do |t, args|
14
+ puts Hcipher::Cipher.generate_key(args[:size].to_i)
15
+ end
16
+ end
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 "hcipher"
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
data/hcipher.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/hcipher/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "hcipher"
7
+ spec.version = Hcipher::VERSION
8
+ spec.authors = ["Hafidz Al Arsyad"]
9
+ spec.email = ["hafidzala@gmail.com"]
10
+
11
+ spec.summary = "Ruby on Rails library for encrypting and decrypting text using hill cipher algorithm"
12
+ # spec.description = "TODO: Write a longer description or delete this line."
13
+ spec.homepage = "https://github.com/arssy/hcipher.git"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = "https://github.com/arssy/hcipher.git"
21
+ spec.metadata["changelog_uri"] = "https://github.com/arssy/hcipher/blob/main/CHANGELOG.md"
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+ spec.add_development_dependency "rspec", "~> 3.2"
35
+ spec.add_development_dependency "activesupport", "~> 5.0", ">= 5.0.0.1"
36
+
37
+ # For more information and examples about making a new gem, checkout our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
@@ -0,0 +1,119 @@
1
+ module Hcipher
2
+ class Cipher
3
+ # define characters here
4
+ # below is default defined characters
5
+ CHARS = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,.:;?/\\'\"()<>[]{}|`~!@#$%^&*-_=+".split("").freeze
6
+
7
+ # generate key
8
+ # only integer is allowed as parameter
9
+ # sending n as parameter will create n*n matrix
10
+ # determinant from matrix created must not 0
11
+ # matrix created will be converted to string
12
+ def self.generate_key(size)
13
+ raise ArgumentError.new("Only integer are allowed") unless size.is_a?(Integer)
14
+ matrix_key = []
15
+ loop do
16
+ matrix_key = Matrix.build(size) { rand(1..(CHARS.size - 1)) }
17
+ coprime = ((matrix_key.det).gcd(CHARS.size) == 1)
18
+
19
+ # always break unless determinant matrix == 0 or determinant matrix and characters size not coprime
20
+ break unless matrix_key.det == 0 || !coprime
21
+ end
22
+ matrix_to_str(matrix_key)
23
+ end
24
+
25
+ def self.encrypt(text, key)
26
+ # Validation
27
+ raise ArgumentError.new("Text and key can not be nil") unless text.present? && key.present?
28
+ check_characters(text)
29
+ check_characters(key)
30
+ check_string(text)
31
+ check_string(key)
32
+ check_key(key)
33
+
34
+ # get matrix for key and text
35
+ matrix_key, matrix_text = get_matrix(text, key)
36
+
37
+ # encrypt text
38
+ encrypted_matrix = matrix_key * matrix_text
39
+ encrypted_matrix = encrypted_matrix.map{|x| x % CHARS.size}
40
+ encrypted_text = matrix_to_str(encrypted_matrix)
41
+ end
42
+
43
+ def self.decrypt(text, key)
44
+ # Validation
45
+ raise ArgumentError.new("Text and key can not be nil") unless text.present? && key.present?
46
+ check_characters(text)
47
+ check_characters(key)
48
+ check_string(text)
49
+ check_string(key)
50
+ check_key(key)
51
+
52
+ # get matrix for key and text
53
+ matrix_key, matrix_text = get_matrix(text, key)
54
+ matrix_key = decryption_key_matrix(matrix_key)
55
+
56
+ # decrypt text
57
+ decrypted_matrix = matrix_key * matrix_text
58
+ decrypted_matrix = decrypted_matrix.map{|x| x % CHARS.size}
59
+ decrypted_text = matrix_to_str(decrypted_matrix)
60
+ end
61
+
62
+ private
63
+ def self.get_matrix(text, key)
64
+ # create matrix key
65
+ sqrt_key_size = Math.sqrt(key.size).to_i
66
+ matrix_key = generate_matrix(key, sqrt_key_size, sqrt_key_size)
67
+
68
+ # create matrix text
69
+ column = (text.size/sqrt_key_size.to_f).ceil
70
+ matrix_text = generate_matrix(text, sqrt_key_size, column)
71
+ return matrix_key, matrix_text
72
+ end
73
+
74
+ def self.generate_matrix(string, rows, cols)
75
+ # scenario: rows x cols == 2 x 2 but the string provided have 3 characters
76
+ # If scenario similar to above happen, the index that can't be filled will be filled automatically with 0
77
+ # ex: [[1, 2], [3, 0]]
78
+ Matrix.build(rows, cols){|row, col| ((cols * row) + col) >= string.size ? 0 : CHARS.rindex(string[(cols * row) + col])}
79
+ end
80
+
81
+ def self.decryption_key_matrix(matrix)
82
+ det_inv = 0
83
+ det = matrix.det % CHARS.size
84
+ loop do
85
+ det_inv += 1
86
+ break if ((det * det_inv) % CHARS.size) == 1
87
+ end
88
+
89
+ matrix_inv = matrix.adjugate.map{|x| ((x % CHARS.size) * det_inv) % CHARS.size}
90
+ end
91
+
92
+ # convert matrix to string
93
+ def self.matrix_to_str(matrix)
94
+ str = ""
95
+ matrix.each do |num|
96
+ # next if num == 0
97
+ str << CHARS[num]
98
+ end
99
+ str
100
+ end
101
+
102
+ def self.check_key(key)
103
+ # Math.sqrt() return float type. ex: 3.0
104
+ # Set key as invalid if square root of key size is not an integer
105
+ raise ArgumentError.new("Key not valid") unless Math.sqrt(key.size).to_s.split(".").last.to_f == 0
106
+ end
107
+
108
+ def self.check_string(string)
109
+ # Allowed key and text type is string
110
+ raise ArgumentError.new("Only string are allowed") unless string.is_a?(String)
111
+ end
112
+
113
+ # return error message if character not defined
114
+ def self.check_characters(string)
115
+ valid = string.to_s.split("").map{|char| CHARS.include?(char)}.uniq rescue false
116
+ raise ArgumentError.new("Some characters are not defined, please define the character first") unless valid.size == 1 && valid.first == true
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Hcipher
4
+ VERSION = "0.1.0"
5
+ end
data/lib/hcipher.rb ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "hcipher/version"
4
+ require_relative 'hcipher/cipher'
5
+ require "active_support/core_ext/object"
6
+ require 'matrix'
7
+
8
+ module Hcipher
9
+ class Error < StandardError; end
10
+ end
metadata ADDED
@@ -0,0 +1,96 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hcipher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hafidz Al Arsyad
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-09-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 5.0.0.1
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '5.0'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 5.0.0.1
47
+ description:
48
+ email:
49
+ - hafidzala@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - ".gitignore"
55
+ - ".rspec"
56
+ - CHANGELOG.md
57
+ - CODE_OF_CONDUCT.md
58
+ - Gemfile
59
+ - Gemfile.lock
60
+ - LICENSE.txt
61
+ - README.md
62
+ - Rakefile
63
+ - bin/console
64
+ - bin/setup
65
+ - hcipher.gemspec
66
+ - lib/hcipher.rb
67
+ - lib/hcipher/cipher.rb
68
+ - lib/hcipher/version.rb
69
+ homepage: https://github.com/arssy/hcipher.git
70
+ licenses:
71
+ - MIT
72
+ metadata:
73
+ homepage_uri: https://github.com/arssy/hcipher.git
74
+ source_code_uri: https://github.com/arssy/hcipher.git
75
+ changelog_uri: https://github.com/arssy/hcipher/blob/main/CHANGELOG.md
76
+ post_install_message:
77
+ rdoc_options: []
78
+ require_paths:
79
+ - lib
80
+ required_ruby_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.4.0
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ requirements: []
91
+ rubygems_version: 3.0.6
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Ruby on Rails library for encrypting and decrypting text using hill cipher
95
+ algorithm
96
+ test_files: []