jwk-tool 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/jwk-tool.gemspec +18 -17
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 445df1e32978abe1f3d6006c1dfc22403b53f602
|
4
|
+
data.tar.gz: dbb9ab5c4543267d5e6c83e32abebe64faa30265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ea23f0c81ea4409f00ee53213e7af27b68072fe52b4e796b68c739b01afc61bf149ade918877f5ce4911a5689aefaa5f79af2a5a08d1f02728c15d7f1b009b
|
7
|
+
data.tar.gz: b0a92a577a21b6b165261bd2940f79b0ffed3086e0a44ec019ad45025917241ff75bfea42777bb4e9ebd93468a772bee2dc78999ce1e162429709a9e10b0aa8b
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ To use the keys as JSON Web Key (JSON::JWK) defined in json-jwk, just read files
|
|
18
18
|
An encryption example at sender node using public key.
|
19
19
|
|
20
20
|
```ruby
|
21
|
-
require 'json/
|
21
|
+
require 'json/jwt'
|
22
22
|
# read public key from file
|
23
23
|
jwk_pub = JSON::JWK.new(JSON.parse(open('key.pub').read))
|
24
24
|
# encrypt plain text "hogehogefoofoo"
|
@@ -36,7 +36,7 @@ json = jwe.as_json.to_json
|
|
36
36
|
A decryption example at receiver node using private key.
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
require 'json/
|
39
|
+
require 'json/jwt'
|
40
40
|
# read private key from file
|
41
41
|
jwk = JSON::JWK.new(JSON.parse(open('key').read))
|
42
42
|
# decrypt JSON format cipher data
|
data/jwk-tool.gemspec
CHANGED
@@ -1,23 +1,24 @@
|
|
1
|
-
Gem::Specification.new do |
|
2
|
-
|
3
|
-
|
1
|
+
Gem::Specification.new do |spec|
|
2
|
+
spec.name = "jwk-tool"
|
3
|
+
spec.version = "0.0.6"
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
spec.authors = ["Toyokazu Akiyama"]
|
6
|
+
spec.email = ["toyokazu@gmail.com"]
|
7
|
+
spec.description = %q{Command line tools for operating JSON Web Key}
|
8
|
+
spec.summary = %q{Command line tools for operating JSON Web Key}
|
9
|
+
spec.homepage = "https://github.com/toyokazu/jwk-tool"
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
spec.files = `git ls-files`.split($\)
|
12
|
+
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
14
|
+
spec.require_paths = ["lib"]
|
15
|
+
spec.has_rdoc = false
|
16
|
+
spec.license = "MIT"
|
17
17
|
|
18
|
-
|
18
|
+
spec.required_ruby_version = '>= 1.9.3'
|
19
19
|
|
20
|
-
|
20
|
+
spec.add_runtime_dependency("json-jwt", [">= 1.5.2"])
|
21
21
|
|
22
|
-
|
22
|
+
spec.add_development_dependency "bundler", "~> 1.10"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jwk-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toyokazu Akiyama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-jwt
|
@@ -24,20 +24,34 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.5.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.10'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rake
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - "
|
45
|
+
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
47
|
+
version: '10.0'
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - "
|
52
|
+
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
54
|
+
version: '10.0'
|
41
55
|
description: Command line tools for operating JSON Web Key
|
42
56
|
email:
|
43
57
|
- toyokazu@gmail.com
|