ubiq-security 1.0.5 → 1.0.6
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/LICENSE +21 -0
- data/lib/ubiq-security.rb +0 -15
- data/lib/ubiq/algo.rb +1 -17
- data/lib/ubiq/auth.rb +1 -17
- data/lib/ubiq/credentials.rb +0 -16
- data/lib/ubiq/decrypt.rb +0 -16
- data/lib/ubiq/encrypt.rb +1 -17
- data/lib/ubiq/host.rb +0 -16
- data/lib/ubiq/version.rb +1 -17
- data/ubiq-security.gemspec +1 -1
- metadata +4 -4
- data/LICENSE.txt +0 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb202f29281352bd6b6054b8ee1593e063b34f5f4230b5f73e59fe3ce33544e1
|
|
4
|
+
data.tar.gz: 58f2192b4fad98886e30218925097539716107748de42d50c29fe83ef250cb0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f5114fb90183ae27e4e706752e9d065cddbacf3230196ad8dce0949207bfc3db92502c607ce606b5ca73716676336514098342b6cb6ad61085467968fab2543
|
|
7
|
+
data.tar.gz: 6fd719b4f2c08b1bfcdfb4a33215002a85f51f2e7d03a24ff7a89e3b941044d470443241f9e447bcac049828548b1ffc9542a37ca9c50bc9b588182dff238d6c
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.6 - 2020-10-28
|
|
4
|
+
* Change to MIT license
|
|
5
|
+
|
|
3
6
|
## 1.0.5 - 2020-09-23
|
|
4
7
|
* Remove dead code
|
|
5
8
|
* Pass client library name and version to server
|
|
6
|
-
* Added AAD information to ciphers for encrypt and
|
|
9
|
+
* Added AAD information to ciphers for encrypt and decrypt
|
|
7
10
|
|
|
8
11
|
## 1.0.1 - 2020-08-20
|
|
9
12
|
* Initial Version
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020- Ubiq Security, Inc. (https://ubiqsecurity.com)
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|
data/lib/ubiq-security.rb
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
|
|
16
1
|
# frozen_string_literal: true
|
|
17
2
|
|
|
18
3
|
require 'ubiq/version'
|
data/lib/ubiq/algo.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
require 'active_support/all'
|
|
@@ -57,7 +41,7 @@ module Ubiq
|
|
|
57
41
|
end
|
|
58
42
|
"unknown"
|
|
59
43
|
end
|
|
60
|
-
|
|
44
|
+
|
|
61
45
|
def get_algo(name)
|
|
62
46
|
set_algo[name]
|
|
63
47
|
end
|
data/lib/ubiq/auth.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
require 'active_support/all'
|
|
@@ -75,7 +59,7 @@ module Ubiq
|
|
|
75
59
|
all_headers.delete('(created)')
|
|
76
60
|
all_headers.delete('(request-target)')
|
|
77
61
|
all_headers.delete('host')
|
|
78
|
-
|
|
62
|
+
|
|
79
63
|
# Build the Signature header itself
|
|
80
64
|
all_headers['signature'] = 'keyId="' + papi + '"'
|
|
81
65
|
all_headers['signature'] += ', algorithm="hmac-sha512"'
|
data/lib/ubiq/credentials.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
require 'configparser'
|
data/lib/ubiq/decrypt.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
require 'rb-readline'
|
data/lib/ubiq/encrypt.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
require 'rb-readline'
|
|
@@ -129,7 +113,7 @@ module Ubiq
|
|
|
129
113
|
|
|
130
114
|
# Pack the result into bytes to get a byte string
|
|
131
115
|
struct = [0, Algo::UBIQ_HEADER_V0_FLAG_AAD, @algo[:id], @iv.length, @key['encrypted'].length].pack('CCCCn')
|
|
132
|
-
|
|
116
|
+
|
|
133
117
|
@enc.auth_data = struct + @iv + @key['encrypted']
|
|
134
118
|
@encryption_started = true
|
|
135
119
|
return struct + @iv + @key['encrypted']
|
data/lib/ubiq/host.rb
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
module Ubiq
|
data/lib/ubiq/version.rb
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
# Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
2
|
-
#
|
|
3
|
-
# NOTICE: All information contained herein is, and remains the property
|
|
4
|
-
# of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
5
|
-
# herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
6
|
-
# covered by U.S. and Foreign Patents, patents in process, and are
|
|
7
|
-
# protected by trade secret or copyright law. Dissemination of this
|
|
8
|
-
# information or reproduction of this material is strictly forbidden
|
|
9
|
-
# unless prior written permission is obtained from Ubiq Security, Inc.
|
|
10
|
-
#
|
|
11
|
-
# Your use of the software is expressly conditioned upon the terms
|
|
12
|
-
# and conditions available at:
|
|
13
|
-
#
|
|
14
|
-
# https://ubiqsecurity.com/legal
|
|
15
|
-
#
|
|
16
|
-
|
|
17
1
|
# frozen_string_literal: true
|
|
18
2
|
|
|
19
3
|
module Ubiq
|
|
20
|
-
VERSION = '1.0.
|
|
4
|
+
VERSION = '1.0.6'
|
|
21
5
|
end
|
data/ubiq-security.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.description = "Provide data encryption to any application with a couple of API calls. " \
|
|
11
11
|
"See https://www.ubiqsecurity.com for details."
|
|
12
12
|
spec.homepage = "https://dev.ubiqsecurity.com/docs/ruby-library"
|
|
13
|
-
spec.license = "
|
|
13
|
+
spec.license = "MIT"
|
|
14
14
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
|
15
15
|
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ubiq-security
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ubiq Security, Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-10-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb-readline
|
|
@@ -61,7 +61,7 @@ files:
|
|
|
61
61
|
- CHANGELOG.md
|
|
62
62
|
- CODE_OF_CONDUCT.md
|
|
63
63
|
- Gemfile
|
|
64
|
-
- LICENSE
|
|
64
|
+
- LICENSE
|
|
65
65
|
- README.md
|
|
66
66
|
- Rakefile
|
|
67
67
|
- lib/ubiq-security.rb
|
|
@@ -75,7 +75,7 @@ files:
|
|
|
75
75
|
- ubiq-security.gemspec
|
|
76
76
|
homepage: https://dev.ubiqsecurity.com/docs/ruby-library
|
|
77
77
|
licenses:
|
|
78
|
-
-
|
|
78
|
+
- MIT
|
|
79
79
|
metadata:
|
|
80
80
|
homepage_uri: https://dev.ubiqsecurity.com/docs/ruby-library
|
|
81
81
|
source_code_uri: https://gitlab.com/ubiqsecurity/ubiq-ruby
|
data/LICENSE.txt
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
Copyright 2020 Ubiq Security, Inc., Proprietary and All Rights Reserved.
|
|
3
|
-
|
|
4
|
-
NOTICE: All information contained herein is, and remains the property
|
|
5
|
-
of Ubiq Security, Inc. The intellectual and technical concepts contained
|
|
6
|
-
herein are proprietary to Ubiq Security, Inc. and its suppliers and may be
|
|
7
|
-
covered by U.S. and Foreign Patents, patents in process, and are
|
|
8
|
-
protected by trade secret or copyright law. Dissemination of this
|
|
9
|
-
information or reproduction of this material is strictly forbidden
|
|
10
|
-
unless prior written permission is obtained from Ubiq Security, Inc.
|
|
11
|
-
|
|
12
|
-
Your use of the software is expressly conditioned upon the terms
|
|
13
|
-
and conditions available at:
|
|
14
|
-
|
|
15
|
-
https://ubiqsecurity.com/legal
|
|
16
|
-
|
|
17
|
-
|