krypton 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -3
- data/bin/krypton +2 -0
- data/img/krypton-readme-header.png +0 -0
- data/lib/core.rb +1 -0
- data/lib/core/constants.rb +1 -1
- data/lib/core/sha.rb +5 -8
- data/lib/core/text.rb +1 -0
- data/scripts/{build-and-install.sh → build_install_local.sh} +0 -4
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 173c51e066179dbd94a2562ed5f2bb3d77fb4b85
|
4
|
+
data.tar.gz: 48d3d1bfb54697117dd0a57ad04ccaf5792e715c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 537b61b1d63be44f4192ef74f7c2ba0831af95657b3386f66adf5287b8681879d3ce62c0e89f8a27118f6681d24db78e23efb8301efa3ec05d00804950ccddb2
|
7
|
+
data.tar.gz: ead0f9afb331fdcabd3c9e705602fad7395e3681da908656ad978b2b242c3c8dcf5967e40635009eb24904fa58de97082fe6b95959527fdcb10a37d11664e5f5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/bin/krypton
CHANGED
Binary file
|
data/lib/core.rb
CHANGED
data/lib/core/constants.rb
CHANGED
data/lib/core/sha.rb
CHANGED
@@ -1,13 +1,10 @@
|
|
1
1
|
require 'digest'
|
2
2
|
|
3
3
|
module Krypton
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
else
|
9
|
-
return Digest::SHA256.base64digest(data)
|
10
|
-
end
|
11
|
-
end
|
4
|
+
class SHA
|
5
|
+
def self.hash(data, raw=false)
|
6
|
+
return Digest::SHA256.hexdigest(data) if raw
|
7
|
+
return Digest::SHA256.base64digest(data)
|
12
8
|
end
|
9
|
+
end
|
13
10
|
end
|
data/lib/core/text.rb
CHANGED
@@ -7,6 +7,7 @@ TASKS_HELP =
|
|
7
7
|
%Q{ encrypt Encrypt the message with the given key (AES).
|
8
8
|
decrypt Decrypt the message with the given key (AES).
|
9
9
|
hash Hash a given message with SHA256.
|
10
|
+
uuid Generate a random UUID.
|
10
11
|
|
11
12
|
#{Paint['Examples', '#95a5a6']}
|
12
13
|
#{Paint['$ krypton encrypt "mymessage" "mykey"', '#2ecc71']} #{Paint['=> ckhJWXcyTE1leENLOWpBQzJWbElMdz09Cg==', '#95a5a6']}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: krypton
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cbrnrd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -129,13 +129,14 @@ files:
|
|
129
129
|
- bin/console
|
130
130
|
- bin/krypton
|
131
131
|
- bin/setup
|
132
|
+
- img/krypton-readme-header.png
|
132
133
|
- krypton.gemspec
|
133
134
|
- lib/core.rb
|
134
135
|
- lib/core/aes.rb
|
135
136
|
- lib/core/constants.rb
|
136
137
|
- lib/core/sha.rb
|
137
138
|
- lib/core/text.rb
|
138
|
-
- scripts/
|
139
|
+
- scripts/build_install_local.sh
|
139
140
|
- scripts/release_and_build.sh
|
140
141
|
homepage: https://github.com/cbrnrd/krypton
|
141
142
|
licenses:
|
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
158
|
version: '0'
|
158
159
|
requirements: []
|
159
160
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.6.
|
161
|
+
rubygems_version: 2.6.13
|
161
162
|
signing_key:
|
162
163
|
specification_version: 4
|
163
164
|
summary: A command-line tool for easy encryption and decryption of data.
|