krypton 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +45 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/krypton +65 -0
- data/bin/setup +8 -0
- data/krypton.gemspec +27 -0
- data/lib/core.rb +12 -0
- data/lib/core/aes.rb +64 -0
- data/lib/core/constants.rb +10 -0
- data/lib/core/sha.rb +0 -0
- data/lib/core/text.rb +14 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1ddfc86674c74551b4a49546966c7da0db8d430a
|
4
|
+
data.tar.gz: 199f45c9a050ce42ec5d7cfbe96f39eed04c800e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9524fcf88360b0860f542fbcb4fa15f2bdc14c9328abaf0850db29ce63c54a6d6ae466db52e2019f2f66317add07c9c88cb417917d445b1e48d67f82fef43810
|
7
|
+
data.tar.gz: b5efc23762f7138954965594285860ae622d81e563671a14f2387c3e8375bcaf26be77ce3377a448f8cb588498882b4e107077ee6785c2177fadc41e3df66324
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 cbawsome77@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
data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
krypton (0.1.1)
|
5
|
+
aes
|
6
|
+
colorize
|
7
|
+
commander
|
8
|
+
paint
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
aes (0.5.0)
|
14
|
+
colorize (0.8.1)
|
15
|
+
commander (4.4.6)
|
16
|
+
highline (~> 1.7.2)
|
17
|
+
diff-lcs (1.3)
|
18
|
+
highline (1.7.10)
|
19
|
+
paint (2.0.1)
|
20
|
+
rake (10.5.0)
|
21
|
+
rspec (3.8.0)
|
22
|
+
rspec-core (~> 3.8.0)
|
23
|
+
rspec-expectations (~> 3.8.0)
|
24
|
+
rspec-mocks (~> 3.8.0)
|
25
|
+
rspec-core (3.8.0)
|
26
|
+
rspec-support (~> 3.8.0)
|
27
|
+
rspec-expectations (3.8.1)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.8.0)
|
30
|
+
rspec-mocks (3.8.0)
|
31
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
+
rspec-support (~> 3.8.0)
|
33
|
+
rspec-support (3.8.0)
|
34
|
+
|
35
|
+
PLATFORMS
|
36
|
+
ruby
|
37
|
+
|
38
|
+
DEPENDENCIES
|
39
|
+
bundler (~> 1.16)
|
40
|
+
krypton!
|
41
|
+
rake (~> 10.0)
|
42
|
+
rspec (~> 3.0)
|
43
|
+
|
44
|
+
BUNDLED WITH
|
45
|
+
1.16.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 cbrnrd
|
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,38 @@
|
|
1
|
+
# Krypton
|
2
|
+
|
3
|
+
Simple encryption and decryption from the command line.
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
You can install krypton as a standalone gem:
|
9
|
+
|
10
|
+
$ gem install krypton
|
11
|
+
|
12
|
+
Or you can install the `periodic-cli` gem:
|
13
|
+
|
14
|
+
$ gem install periodic-cli
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
To encrypt a string, the command looks like this:
|
19
|
+
|
20
|
+
$ krypton encrypt "mymessage" "mykey"
|
21
|
+
mymessage => ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg==
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cbrnrd/krypton. 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.
|
26
|
+
|
27
|
+
## License
|
28
|
+
|
29
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
30
|
+
|
31
|
+
## Code of Conduct
|
32
|
+
|
33
|
+
Everyone interacting in the Krypton project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cbrnrd/krypton/blob/master/CODE_OF_CONDUCT.md).
|
34
|
+
|
35
|
+
|
36
|
+
<p align="center">
|
37
|
+
<img height="100" width="300" src="https://i.imgur.com/obHmDnX.png">
|
38
|
+
</p>
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "krypton"
|
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/krypton
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
require 'core'
|
6
|
+
require 'colorize'
|
7
|
+
|
8
|
+
Signal.trap("INT"){}
|
9
|
+
|
10
|
+
ARGV << '-h' if ARGV.empty?
|
11
|
+
|
12
|
+
options = {}
|
13
|
+
options[:outfile] = ''
|
14
|
+
options[:raw] = false
|
15
|
+
OptionParser.new do |opts|
|
16
|
+
opts.banner = "A command-line tool to encrypt and decrypt data in multiple formats.\n\nUsage: #{File.basename($PROGRAM_NAME)} [options] [task] \"message\" \"key\"\nKrypton version: #{Paint[VERSION, '#2ecc71']}"
|
17
|
+
opts.separator Paint["\nGlobal Options: ", '#95a5a6']
|
18
|
+
|
19
|
+
opts.on('-o OUTFILE', '--outfile OUTFILE', String, 'A file to save the output in') do |v|
|
20
|
+
options[:outfile] = v
|
21
|
+
end
|
22
|
+
|
23
|
+
opts.on('-r', '--raw', 'Set the input and output type to the raw bytes, if available (Default: false)') do
|
24
|
+
options[:raw] = true
|
25
|
+
end
|
26
|
+
|
27
|
+
opts.on('--verbose', 'Run verbosely') do
|
28
|
+
$verbose = true
|
29
|
+
end
|
30
|
+
|
31
|
+
opts.on('-v', '--version', 'Show the krypton version and exit') do
|
32
|
+
puts "Krypton version: #{Paint[VERSION, '#2ecc71']}"
|
33
|
+
exit 0
|
34
|
+
end
|
35
|
+
|
36
|
+
opts.on('-h', '--help', 'Show this help message') do
|
37
|
+
puts opts
|
38
|
+
puts TASKS_HELP
|
39
|
+
exit
|
40
|
+
end
|
41
|
+
|
42
|
+
opts.separator Paint["\nTasks: ", '#95a5a6']
|
43
|
+
|
44
|
+
end.parse!(ARGV)
|
45
|
+
|
46
|
+
while (opt = ARGV.shift) do
|
47
|
+
case opt
|
48
|
+
when 'encrypt'
|
49
|
+
#puts Krypton::AESCrypt.encrypt(ARGV[ARGV.length - 2], ARGV[ARGV.length - 1], options[:outfile]) if options[:raw]
|
50
|
+
result = Base64.encode64(Krypton::AESCrypt.encrypt(ARGV[ARGV.length - 2], ARGV[ARGV.length - 1], options[:outfile]))
|
51
|
+
puts "#{ARGV[ARGV.length - 2] + ' => '}#{Paint[result.strip, '#2ecc71']}"
|
52
|
+
exit 0
|
53
|
+
when 'decrypt'
|
54
|
+
#puts Krypton::AESCrypt.decrypt(ARGV[ARGV.length - 2], ARGV[ARGV.length - 1], options[:outfile]) if options[:raw]
|
55
|
+
result = Krypton::AESCrypt.decrypt(Base64.decode64(ARGV[ARGV.length - 2]), ARGV[ARGV.length - 1], options[:outfile])
|
56
|
+
puts "#{ARGV[ARGV.length - 2] + ' => '}#{Paint[result.strip, '#2ecc71']}"
|
57
|
+
exit 0
|
58
|
+
when 'hash'
|
59
|
+
puts "This feature is not implemented yet but is coming soon."
|
60
|
+
exit 0
|
61
|
+
else
|
62
|
+
puts "#{opt} is not a valid action!"
|
63
|
+
exit 1
|
64
|
+
end
|
65
|
+
end
|
data/bin/setup
ADDED
data/krypton.gemspec
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), 'lib')))
|
2
|
+
require "core"
|
3
|
+
|
4
|
+
Gem::Specification.new do |spec|
|
5
|
+
spec.name = "krypton"
|
6
|
+
spec.version = '0.1.1'
|
7
|
+
spec.authors = ["cbrnrd"]
|
8
|
+
spec.email = ["0xCB@protonmail.com"]
|
9
|
+
spec.summary = %q{A command-line tool for easy encryption and decryption of data.}
|
10
|
+
spec.homepage = "https://github.com/cbrnrd/krypton"
|
11
|
+
spec.license = "MIT"
|
12
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
13
|
+
f.match(%r{^(test|spec|features|#{__FILE__})/})
|
14
|
+
end
|
15
|
+
spec.date = Time.now.strftime('%Y-%m-%d')
|
16
|
+
spec.executables = %w[krypton]
|
17
|
+
spec.require_paths = ["lib"]
|
18
|
+
|
19
|
+
spec.add_runtime_dependency "colorize"
|
20
|
+
spec.add_runtime_dependency "paint"
|
21
|
+
spec.add_runtime_dependency "aes"
|
22
|
+
spec.add_runtime_dependency "commander"
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
end
|
data/lib/core.rb
ADDED
data/lib/core/aes.rb
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'openssl'
|
2
|
+
require 'aes'
|
3
|
+
|
4
|
+
module Krypton
|
5
|
+
class AESCrypt
|
6
|
+
|
7
|
+
# Taken from https://github.com/Gurpartap/aescrypt/blob/master/lib/aescrypt.rb and improved for newew ruby versions
|
8
|
+
def self.encrypt(message, password, outfile='')
|
9
|
+
a = Base64.encode64(self.encrypt_data(message.to_s.strip, self.key_digest(password), nil, "AES-256-CBC"))
|
10
|
+
File.write(outfile, a) unless outfile == '' || outfile.nil?
|
11
|
+
a
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.decrypt(message, password, outfile='')
|
16
|
+
base64_decoded = Base64.decode64(message.to_s.strip)
|
17
|
+
d = self.decrypt_data(base64_decoded, self.key_digest(password), nil, "AES-256-CBC")
|
18
|
+
File.write(outfile, d) unless outfile == '' || outfile.nil?
|
19
|
+
d
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.key_digest(password)
|
23
|
+
OpenSSL::Digest::SHA256.new(password).digest
|
24
|
+
end
|
25
|
+
|
26
|
+
# Decrypts a block of data (encrypted_data) given an encryption key
|
27
|
+
# and an initialization vector (iv). Keys, iv's, and the data
|
28
|
+
# returned are all binary strings. Cipher_type should be
|
29
|
+
# "AES-256-CBC", "AES-256-ECB", or any of the cipher types
|
30
|
+
# supported by OpenSSL. Pass nil for the iv if the encryption type
|
31
|
+
# doesn't use iv's (like ECB).
|
32
|
+
#:return: => String
|
33
|
+
#:arg: encrypted_data => String
|
34
|
+
#:arg: key => String
|
35
|
+
#:arg: iv => String
|
36
|
+
#:arg: cipher_type => String
|
37
|
+
def self.decrypt_data(encrypted_data, key, iv, cipher_type)
|
38
|
+
aes = OpenSSL::Cipher.new(cipher_type)
|
39
|
+
aes.decrypt
|
40
|
+
aes.key = key
|
41
|
+
aes.iv = iv if iv != nil
|
42
|
+
aes.update(encrypted_data) + aes.final
|
43
|
+
end
|
44
|
+
|
45
|
+
# Encrypts a block of data given an encryption key and an
|
46
|
+
# initialization vector (iv). Keys, iv's, and the data returned
|
47
|
+
# are all binary strings. Cipher_type should be "AES-256-CBC",
|
48
|
+
# "AES-256-ECB", or any of the cipher types supported by OpenSSL.
|
49
|
+
# Pass nil for the iv if the encryption type doesn't use iv's (like
|
50
|
+
# ECB).
|
51
|
+
#:return: => String
|
52
|
+
#:arg: data => String
|
53
|
+
#:arg: key => String
|
54
|
+
#:arg: iv => String
|
55
|
+
#:arg: cipher_type => String
|
56
|
+
def self.encrypt_data(data, key, iv, cipher_type)
|
57
|
+
aes = OpenSSL::Cipher.new(cipher_type)
|
58
|
+
aes.encrypt
|
59
|
+
aes.key = key
|
60
|
+
aes.iv = iv if iv != nil
|
61
|
+
aes.update(data) + aes.final
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
data/lib/core/sha.rb
ADDED
File without changes
|
data/lib/core/text.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'paint'
|
2
|
+
def vprint(*args)
|
3
|
+
puts args if $verbose
|
4
|
+
end
|
5
|
+
|
6
|
+
TASKS_HELP =
|
7
|
+
%Q{ encrypt Encrypt the message with the given key (AES).
|
8
|
+
decrypt Decrypt the message with the given key (AES).
|
9
|
+
hash Hash a given message with SHA256.
|
10
|
+
|
11
|
+
#{Paint['Examples', '#95a5a6']}
|
12
|
+
#{Paint['$ krypton encrypt "mymessage" "mykey"', '#2ecc71']} #{Paint['=> ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg==', '#95a5a6']}
|
13
|
+
#{Paint['$ krypton hash "mymessage"', '#2ecc71']} => #{Paint['4B738DA7D58CEFFAC231EB949EF583CE9E5DC5BB9256C395E9B239009BD1A827', '#95a5a6']}
|
14
|
+
}
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: krypton
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- cbrnrd
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: colorize
|
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: paint
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
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: aes
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: commander
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.16'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.16'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.0'
|
111
|
+
description:
|
112
|
+
email:
|
113
|
+
- 0xCB@protonmail.com
|
114
|
+
executables:
|
115
|
+
- krypton
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CODE_OF_CONDUCT.md
|
123
|
+
- Gemfile
|
124
|
+
- Gemfile.lock
|
125
|
+
- LICENSE.txt
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/krypton
|
130
|
+
- bin/setup
|
131
|
+
- krypton.gemspec
|
132
|
+
- lib/core.rb
|
133
|
+
- lib/core/aes.rb
|
134
|
+
- lib/core/constants.rb
|
135
|
+
- lib/core/sha.rb
|
136
|
+
- lib/core/text.rb
|
137
|
+
homepage: https://github.com/cbrnrd/krypton
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.6.13
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: A command-line tool for easy encryption and decryption of data.
|
161
|
+
test_files: []
|