rsecret 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a05b94e6dac3cd208fa1f577ad4aa261e99c4708
4
+ data.tar.gz: 176a6fe9deeed1ea6b074a9749645c51e456fe17
5
+ SHA512:
6
+ metadata.gz: f5c5520a699cae34f29fd1a8fc0b298a53d39056d9b3ab80d49d0a5fd54661e942817e4dd530f1a4f6902886f20fa92310bbb1d5e189b401d8b42c2de2cf4faf
7
+ data.tar.gz: 025e4b0df20644b9668f4db587a80ea689fb986ae28a486c76fea7c95a969f258fb26b6d029462ba03330417042d321d2943db9b6e9036d7ea5cf72de3abde06
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1 @@
1
+ 2.3.1
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.15.1
@@ -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 tedworld.time@gmail.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,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in secret.gemspec
4
+ gemspec
5
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 TedYin
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.
@@ -0,0 +1,68 @@
1
+ # Secret
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/secret`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'secret'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install secret
22
+
23
+ ## Usage
24
+
25
+ ### Configuration
26
+ > config/initializers/setup_secret.rb
27
+
28
+ ```ruby
29
+ Secret.config do |conf|
30
+ conf.aes_key = 'Your aes cbc mode secret key .'
31
+ conf.aes_iv = 'Your aes cbc mode iv .'
32
+ conf.aes_mode = Mode::AES_256_CBC # or AES_128_CBC
33
+ conf.hash_mode = Mode::SHA_256 # or MD5
34
+ # If encode_mode is nil ,it will not encode or decode msg
35
+ conf.encode_mode = Mode::BASE_64
36
+ # RSA pem file config
37
+ conf.rsa_pub_key_path = 'Your rsa public pem file path'
38
+ conf.rsa_pri_key_path = 'Your rsa private pem file path'
39
+ conf.rsa_pwd = 'Your rsa private pem password'
40
+ end
41
+ ```
42
+
43
+ ### AES CBC Mode
44
+ ```ruby
45
+ Secret::AES.encrypt msg
46
+ Secret::AES.decrypt cipher
47
+ ```
48
+
49
+ ### RSA
50
+ ```ruby
51
+ Secret::RSA.encrypt msg
52
+ Secret::RSA.decrypt cipher
53
+ Secret::RSA.sign msg
54
+ Secret::RSA.verify_sign signature, origin
55
+ ```
56
+
57
+
58
+ ## Contributing
59
+
60
+ Bug reports and pull requests are welcome on GitHub at https://github.com/TedYin/secret. 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.
61
+
62
+ ## License
63
+
64
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
65
+
66
+ ## Code of Conduct
67
+
68
+ Everyone interacting in the Secret project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/secret/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "secret"
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__)
@@ -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,12 @@
1
+ require 'secret/mode'
2
+ require 'secret/configuration'
3
+
4
+ module Secret
5
+ def self.conf
6
+ @conf ||= Secret::Configuration.new
7
+ end
8
+
9
+ def self.config(&block)
10
+ block.call(conf)
11
+ end
12
+ end
@@ -0,0 +1,51 @@
1
+ require 'openssl'
2
+ require 'secret'
3
+ require 'secret/encode'
4
+ require 'secret/mode'
5
+
6
+ module Secret
7
+ class AES
8
+ include Secret::Encode
9
+
10
+ def initialize(mode = Mode::AES_256_CBC)
11
+ @cipher = OpenSSL::Cipher::Cipher.new mode
12
+ end
13
+
14
+ def self.mode(mode = Mode::AES_256_CBC)
15
+ self.new(mode)
16
+ end
17
+
18
+ def self.encrypt(msg)
19
+ self.mode.encrypt msg
20
+ end
21
+
22
+ def self.decrypt(msg)
23
+ self.mode.decrypt msg
24
+ end
25
+
26
+ def encrypt(msg, key = Secret.conf.aes_key, iv = Secret.conf.aes_iv)
27
+ @cipher.encrypt
28
+ @cipher.key = digest_key(key)
29
+ @cipher.iv = iv if iv != nil
30
+ encode_if_need(@cipher.update(msg) + @cipher.final)
31
+ end
32
+
33
+ def decrypt(msg, key = Secret.conf.aes_key, iv = Secret.conf.aes_iv)
34
+ @cipher.decrypt
35
+ @cipher.key = digest_key(key)
36
+ @cipher.iv = iv if iv != nil
37
+ @cipher.update(decode_if_need(msg)) + @cipher.final
38
+ end
39
+
40
+ private
41
+
42
+ def digest_key(key)
43
+ hash_mode = Secret.conf.hash_mode
44
+ if hash_mode
45
+ hash_mode.hexdigest key
46
+ else
47
+ key
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,16 @@
1
+ require 'secret'
2
+ module Secret
3
+ class Configuration
4
+ attr_accessor :aes_mode, :aes_key, :aes_iv, :rsa_pub_key_path,
5
+ :rsa_pri_key_path, :rsa_pwd, :hash_mode,
6
+ :encode_mode
7
+
8
+ def initialize
9
+ self.aes_key = 'd87bdfe63b7dda1452f3361b57b560c52e1a2aaffdcb31ae38f44a06efc536d4'
10
+ self.aes_iv = nil
11
+ self.aes_mode = Mode::AES_256_CBC
12
+ self.hash_mode = Mode::SHA_256
13
+ self.encode_mode = Mode::BASE_64
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,32 @@
1
+ require 'secret'
2
+ require 'openssl'
3
+ module Secret
4
+ module Encode
5
+ def encode_if_need(msg)
6
+ if base64?
7
+ @mode.encode64 msg
8
+ else
9
+ msg
10
+ end
11
+ end
12
+
13
+ def decode_if_need(msg)
14
+ if base64?
15
+ @mode.decode64 msg
16
+ else
17
+ msg
18
+ end
19
+ end
20
+
21
+ private
22
+
23
+ def base64?
24
+ @mode = Secret.conf.encode_mode
25
+ if @mode&.name == 'Base64'
26
+ true
27
+ else
28
+ false
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,11 @@
1
+ require 'openssl'
2
+ require 'base64'
3
+ module Secret
4
+ module Mode
5
+ AES_256_CBC = 'AES-256-CBC'.freeze
6
+ AES_128_CBC = 'AES-128-CBC'.freeze
7
+ MD5 = OpenSSL::Digest::MD5.new.freeze
8
+ SHA_256 = OpenSSL::Digest::SHA256.new.freeze
9
+ BASE_64 = Base64
10
+ end
11
+ end
@@ -0,0 +1,68 @@
1
+ require 'secret'
2
+ require 'secret/encode'
3
+ require 'openssl'
4
+ module Secret
5
+ class RSA
6
+ include Secret::Encode
7
+ def initialize
8
+ init_private_key
9
+ init_public_key
10
+ end
11
+
12
+ def self.rsa
13
+ @rsa ||= self.new
14
+ end
15
+
16
+ def self.encrypt(msg)
17
+ rsa.encrypt msg
18
+ end
19
+
20
+ def self.decrypt(msg)
21
+ rsa.decrypt msg
22
+ end
23
+
24
+ def self.sign(msg)
25
+ rsa.sign msg
26
+ end
27
+
28
+ def self.verify_sign(signed_msg, origin_msg)
29
+ rsa.verify_sign signed_msg, origin_msg
30
+ end
31
+
32
+ def encrypt(msg)
33
+ encode_if_need pub_k.public_encrypt(msg)
34
+ end
35
+
36
+ def decrypt(msg)
37
+ pri_k.private_decrypt decode_if_need(msg)
38
+ end
39
+
40
+ def sign(msg)
41
+ encode_if_need pri_k.sign(Secret.conf.hash_mode, msg)
42
+ end
43
+
44
+ def verify_sign(signed_msg, origin_msg)
45
+ pub_k.verify Secret.conf.hash_mode, decode_if_need(signed_msg), origin_msg
46
+ end
47
+
48
+ private
49
+
50
+ def init_private_key(path = Secret.conf.rsa_pri_key_path, pwd = Secret.conf.rsa_pwd)
51
+ raise 'Private pem path can not be nil !' if path.to_s == ''
52
+ @private_key ||= OpenSSL::PKey::RSA.new(File.read(path), pwd)
53
+ end
54
+
55
+ def init_public_key(path = Secret.conf.rsa_pub_key_path)
56
+ raise 'Public pem path can not be nil !' if path.to_s == ''
57
+ @public_key ||= OpenSSL::PKey::RSA.new(File.read(path))
58
+ end
59
+
60
+ def pri_k
61
+ @private_key
62
+ end
63
+
64
+ def pub_k
65
+ @public_key
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,3 @@
1
+ module Secret
2
+ VERSION = '0.0.1'
3
+ end
@@ -0,0 +1,30 @@
1
+ -----BEGIN RSA PRIVATE KEY-----
2
+ Proc-Type: 4,ENCRYPTED
3
+ DEK-Info: DES-EDE3-CBC,8C5E78C2630EE769
4
+
5
+ nRCDfsIsCcA6fYxe4uPQOxVlOQa42xVkS+m8IZ1I72vLz7pUcEvXXLcgqwFnCTvF
6
+ rtASmLvsilCEQ1krx0r/xQbeM3JAPMBnZrDJTwepnvgDEg75Lbn3NPKqjjK5LJ6r
7
+ UlTSmqGTCY6G5Zk2WX4x0kauA37K+ooIDyJB1YNreEzeylPRxRmACZxUwS9DjMM6
8
+ TrArPrg/9PADLYmXb+mAsWff5R5xwO9QslFlg9WCJ4jjoKvA9BL6SGRatFB3Uhc9
9
+ jkUjDKmYO/tM29uKWyhHC7PEM4VL5b5ts9nBjBS6uGRTONC2jp3ecjV66Rw5+ohn
10
+ 8mmIRFo4BnHuQGkUU9te8bahXmZN+3aPwa2MmPis6Ykj41rbM7TRKcjeLs5wtPBG
11
+ 0qANy/1lPpO2+Fdw7nWeDRRaLKBX4v/k1XuZ5pRx4OfTEV3H7FdO7+rs6fWpo1gN
12
+ JzqB4y/703QDJ4CnZYGzAxFLNLSoR9t9U+4FoNMYlVpoS2CdWHJ2dvrzCtjblOlD
13
+ ab28k5HnEBPAJJnWfQSkup84MHnAHGYZ6mWA+s+I0yPYQc1blQgYlATce7ubPKbm
14
+ 6ZMO2yEpuF7oRM5ThC/qbdf1F/0TC2/EOQlX9mVWiAlhtw0RNzxl+18gWyr+jg2t
15
+ cl8h2W3/v7Hov4htr+k6UnioZZcS+iB1Cw8lfFTO0TuGTP0ocUEC5b6vQZOboYCn
16
+ pddaX0IIUni/thGjRey8UiQ0GZ++wf/c4eO+ZNcImxuKMLbOP9JfXlKyPr+2iLNx
17
+ I1GX/9hvT4bk2ab78kKGOo+Er0tsjrAomUzlUGYIWLjLnjbTTFyaSzExwmSqQqQA
18
+ HQzcn6kZ4QvbvxETjdmJt2SyNJZPEhaK6EpRN0T1Q5iIrsGMJjTR3nMwHSWdLF8u
19
+ wclmtnzPHBBRjJspghMLcCZcLfZWaW9Wj3mGif3Rijij+2PKMWgK4guE6PDiWOKv
20
+ BkbWXJoYIdnE7KZC+uJ9rsL8MbZPWXQZ9OPPfJNXXoW1Fw2rJHg0Gl7VPxYtVH9V
21
+ zeuaE8OokEr3tXhokG6yQno9RQPDZ9L6n6eevVh1FW7dQOXTFrk88cKsoQ1kj2ry
22
+ Mi2qZNSoWdf5F5sWlEp2iZvoVnIkEKVSwge+9AZlh6RkWNQsAzy+WM8iCGsUXA2v
23
+ 6p+NMpCuHSdl2a19fytWkZLYyVIhKhLjpGPFNE2YRjCRqpdKPvWkgZ2u7TF2ECld
24
+ LIP3HNE88wwPsOUc4eEJMiDkNevxV0SisKjB04Oj0LSe8c4SBTbk8bhoLCjSgTKJ
25
+ bja7l0f0Z6qx8g4+RQ2nU9Ok6vZhHvESzmgPzOl2zwn6LSlxkNllfiEs+WYCboEi
26
+ v4W7MGvkf2PWBV+poRyQaE1ihHagFmhTk4FUZ0SiFm0Ng3sCiNQqeriAUEC5lxkX
27
+ gAOgogGzfrQ6LO9WN3tINSp3N0B4Ij6O1OyvN4trldT/eJmfnPzt/qLD2vn/iIx8
28
+ xq1glIWNXsYrCzEY0YAVsbnhgpT65bS2Aa08/GoNCpbDleqWhGpu8DugoSqq7t37
29
+ 4tCWgW0NaNnWPmkclezFQ0uT+3TU1gj4EBgM1oDffL2ZlY6KYCZCLw==
30
+ -----END RSA PRIVATE KEY-----
@@ -0,0 +1,9 @@
1
+ -----BEGIN PUBLIC KEY-----
2
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwmSxBPELV37PVMgj93zI
3
+ 5DX4vpffAoIgdpP/SQcn48blIIIS30BTYK2T3W5M6bPwJIh533CobTf+K12Gm6DY
4
+ HLNe2gJV5dt7QkUfz64KHbhzapbjGEiBP3u+bZ63dgvaja+oirkHXyoUHEUGyqVp
5
+ BsOKNuQ107mmUyTXEMCfCbrjaMAOVm3ST3ccgfqPKiEYK/O1k1J71nH8Ws3a9Lvf
6
+ hk9rDzAirjOpjjfjKSFXnvZ4oL8i1F9lK09idDBNRRT5ld2DDJMb8ZqSOwZHYcyA
7
+ uCR18iMbdG7Ft+kS7uZdcHU+7TG7xPnrktj8xZYr1OSu7olWh+Eln14TYyrjCDOP
8
+ vQIDAQAB
9
+ -----END PUBLIC KEY-----
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "secret/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rsecret"
8
+ spec.version = Secret::VERSION
9
+ spec.authors = ["TedYin"]
10
+ spec.email = ["tedworld.time@gmail.com"]
11
+
12
+ spec.summary = %q{Easy Cipher!}
13
+ spec.description = %q{Make it easy to use Cipher .}
14
+ spec.homepage = 'https://github.com/TedYin/rsecret'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.15"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "minitest", "~> 5.0"
27
+ end
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rsecret
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - TedYin
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-12-19 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: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description: Make it easy to use Cipher .
56
+ email:
57
+ - tedworld.time@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".ruby-version"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - lib/secret.rb
73
+ - lib/secret/aes.rb
74
+ - lib/secret/configuration.rb
75
+ - lib/secret/encode.rb
76
+ - lib/secret/mode.rb
77
+ - lib/secret/rsa.rb
78
+ - lib/secret/version.rb
79
+ - private.pem
80
+ - public.pem
81
+ - rsecret.gemspec
82
+ homepage: https://github.com/TedYin/rsecret
83
+ licenses:
84
+ - MIT
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubyforge_project:
102
+ rubygems_version: 2.5.1
103
+ signing_key:
104
+ specification_version: 4
105
+ summary: Easy Cipher!
106
+ test_files: []