heya 0.3.0 → 0.4.0
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 +5 -0
- data/LICENSE +633 -57
- data/README.md +19 -5
- data/app/models/heya/campaign_membership.rb +81 -0
- data/lib/generators/heya/install/templates/migration.rb.tt +1 -0
- data/lib/heya.rb +1 -42
- data/lib/heya/active_record_extension.rb +37 -0
- data/lib/heya/campaigns/base.rb +9 -18
- data/lib/heya/campaigns/queries.rb +10 -93
- data/lib/heya/campaigns/scheduler.rb +17 -16
- data/lib/heya/config.rb +0 -1
- data/lib/heya/engine.rb +0 -11
- data/lib/heya/version.rb +1 -1
- metadata +8 -11
- data/lib/heya/license.rb +0 -179
- data/lib/heya/license/boundary.rb +0 -64
- data/lib/heya/license/encryptor.rb +0 -122
- data/license_key.pub +0 -9
data/lib/heya/config.rb
CHANGED
data/lib/heya/engine.rb
CHANGED
|
@@ -15,16 +15,5 @@ module Heya
|
|
|
15
15
|
require_dependency(c)
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
-
|
|
19
|
-
config.after_initialize do
|
|
20
|
-
license_key = File.expand_path("../../../license_key.pub", __FILE__)
|
|
21
|
-
License.encryption_key = File.read(license_key) if File.file?(license_key)
|
|
22
|
-
|
|
23
|
-
Heya.configure do |config|
|
|
24
|
-
config.license_file ||= Rails.root.join("config/Heya.heya-license")
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
Heya.verify_license!
|
|
28
|
-
end
|
|
29
18
|
end
|
|
30
19
|
end
|
data/lib/heya/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: heya
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Wood
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -19,7 +19,7 @@ dependencies:
|
|
|
19
19
|
version: 5.2.3
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: 6.
|
|
22
|
+
version: 6.2.0
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -29,7 +29,7 @@ dependencies:
|
|
|
29
29
|
version: 5.2.3
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 6.
|
|
32
|
+
version: 6.2.0
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: pg
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,6 +99,7 @@ files:
|
|
|
99
99
|
- lib/generators/heya/install/templates/initializer.rb.tt
|
|
100
100
|
- lib/generators/heya/install/templates/migration.rb.tt
|
|
101
101
|
- lib/heya.rb
|
|
102
|
+
- lib/heya/active_record_extension.rb
|
|
102
103
|
- lib/heya/campaigns/action.rb
|
|
103
104
|
- lib/heya/campaigns/actions/block.rb
|
|
104
105
|
- lib/heya/campaigns/actions/email.rb
|
|
@@ -109,17 +110,13 @@ files:
|
|
|
109
110
|
- lib/heya/campaigns/step_action_job.rb
|
|
110
111
|
- lib/heya/config.rb
|
|
111
112
|
- lib/heya/engine.rb
|
|
112
|
-
- lib/heya/license.rb
|
|
113
|
-
- lib/heya/license/boundary.rb
|
|
114
|
-
- lib/heya/license/encryptor.rb
|
|
115
113
|
- lib/heya/version.rb
|
|
116
114
|
- lib/tasks/heya_tasks.rake
|
|
117
|
-
- license_key.pub
|
|
118
115
|
homepage: https://github.com/honeybadger-io/heya
|
|
119
116
|
licenses:
|
|
120
117
|
- Prosperity Public License
|
|
121
118
|
metadata: {}
|
|
122
|
-
post_install_message:
|
|
119
|
+
post_install_message: Upgrading from Heya < 0.4? See https://git.io/JtgmW
|
|
123
120
|
rdoc_options: []
|
|
124
121
|
require_paths:
|
|
125
122
|
- lib
|
|
@@ -135,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
132
|
version: '0'
|
|
136
133
|
requirements: []
|
|
137
134
|
rubygems_version: 3.1.2
|
|
138
|
-
signing_key:
|
|
135
|
+
signing_key:
|
|
139
136
|
specification_version: 4
|
|
140
137
|
summary: "Heya \U0001F44B"
|
|
141
138
|
test_files: []
|
data/lib/heya/license.rb
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# The MIT License (MIT)
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015 GitLab B.V.
|
|
6
|
-
#
|
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
# in the Software without restriction, including without limitation the rights
|
|
10
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
# furnished to do so, subject to the following conditions:
|
|
13
|
-
#
|
|
14
|
-
# The above copyright notice and this permission notice shall be included in
|
|
15
|
-
# all copies or substantial portions of the Software.
|
|
16
|
-
#
|
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
# THE SOFTWARE.
|
|
24
|
-
|
|
25
|
-
require "openssl"
|
|
26
|
-
require "date"
|
|
27
|
-
require "json"
|
|
28
|
-
require "base64"
|
|
29
|
-
|
|
30
|
-
require "heya/license/encryptor"
|
|
31
|
-
require "heya/license/boundary"
|
|
32
|
-
|
|
33
|
-
module Heya
|
|
34
|
-
class License
|
|
35
|
-
class Error < StandardError; end
|
|
36
|
-
class ImportError < Error; end
|
|
37
|
-
class ValidationError < Error; end
|
|
38
|
-
|
|
39
|
-
class << self
|
|
40
|
-
attr_reader :encryption_key
|
|
41
|
-
@encryption_key = nil
|
|
42
|
-
|
|
43
|
-
def encryption_key=(key)
|
|
44
|
-
key = OpenSSL::PKey::RSA.new(key.to_s) unless key&.is_a?(OpenSSL::PKey::RSA)
|
|
45
|
-
@encryption_key = key
|
|
46
|
-
@encryptor = nil
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def encryptor
|
|
50
|
-
@encryptor ||= Encryptor.new(encryption_key)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def import(data)
|
|
54
|
-
if data.nil?
|
|
55
|
-
raise ImportError, "No license data."
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
data = Boundary.remove_boundary(data)
|
|
59
|
-
|
|
60
|
-
begin
|
|
61
|
-
license_json = encryptor.decrypt(data)
|
|
62
|
-
rescue Encryptor::Error
|
|
63
|
-
raise ImportError, "License data could not be decrypted."
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
begin
|
|
67
|
-
attributes = JSON.parse(license_json)
|
|
68
|
-
rescue JSON::ParseError
|
|
69
|
-
raise ImportError, "License data is invalid JSON."
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
new(attributes)
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
attr_reader :version
|
|
77
|
-
attr_accessor :licensee, :starts_at, :expires_at
|
|
78
|
-
attr_accessor :restrictions
|
|
79
|
-
|
|
80
|
-
def initialize(attributes = {})
|
|
81
|
-
load_attributes(attributes)
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
def valid?
|
|
85
|
-
return false if !licensee || !licensee.is_a?(Hash) || licensee.length == 0
|
|
86
|
-
return false if !starts_at || !starts_at.is_a?(Date)
|
|
87
|
-
return false if expires_at && !expires_at.is_a?(Date)
|
|
88
|
-
return false if restrictions && !restrictions.is_a?(Hash)
|
|
89
|
-
|
|
90
|
-
true
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
def validate!
|
|
94
|
-
raise ValidationError, "License is invalid" unless valid?
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
def will_expire?
|
|
98
|
-
expires_at
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
def expired?
|
|
102
|
-
will_expire? && Date.today >= expires_at
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
def restricted?(key = nil)
|
|
106
|
-
if key
|
|
107
|
-
restricted? && restrictions.has_key?(key)
|
|
108
|
-
else
|
|
109
|
-
restrictions && restrictions.length >= 1
|
|
110
|
-
end
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
def attributes
|
|
114
|
-
hash = {}
|
|
115
|
-
|
|
116
|
-
hash["version"] = version
|
|
117
|
-
hash["licensee"] = licensee
|
|
118
|
-
|
|
119
|
-
hash["starts_at"] = starts_at
|
|
120
|
-
hash["expires_at"] = expires_at if will_expire?
|
|
121
|
-
|
|
122
|
-
hash["restrictions"] = restrictions if restricted?
|
|
123
|
-
|
|
124
|
-
hash
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
def to_json
|
|
128
|
-
JSON.dump(attributes)
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
def export(boundary: nil)
|
|
132
|
-
validate!
|
|
133
|
-
|
|
134
|
-
data = self.class.encryptor.encrypt(to_json)
|
|
135
|
-
|
|
136
|
-
if boundary
|
|
137
|
-
data = Boundary.add_boundary(data, boundary)
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
data
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
private
|
|
144
|
-
|
|
145
|
-
def load_attributes(attributes)
|
|
146
|
-
attributes = Hash[attributes.map { |k, v| [k.to_s, v] }]
|
|
147
|
-
|
|
148
|
-
version = attributes["version"] || 1
|
|
149
|
-
unless version && version == 1
|
|
150
|
-
raise ArgumentError, "Version is too new"
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
@version = version
|
|
154
|
-
|
|
155
|
-
@licensee = attributes["licensee"]
|
|
156
|
-
|
|
157
|
-
%w[starts_at expires_at].each do |attr|
|
|
158
|
-
value = attributes[attr]
|
|
159
|
-
if value.is_a?(String)
|
|
160
|
-
value = begin
|
|
161
|
-
Date.parse(value)
|
|
162
|
-
rescue
|
|
163
|
-
nil
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
next unless value
|
|
168
|
-
|
|
169
|
-
send("#{attr}=", value)
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
restrictions = attributes["restrictions"]
|
|
173
|
-
if restrictions&.is_a?(Hash)
|
|
174
|
-
restrictions = Hash[restrictions.map { |k, v| [k.to_sym, v] }]
|
|
175
|
-
@restrictions = restrictions
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
end
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# The MIT License (MIT)
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015 GitLab B.V.
|
|
6
|
-
#
|
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
# in the Software without restriction, including without limitation the rights
|
|
10
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
# furnished to do so, subject to the following conditions:
|
|
13
|
-
#
|
|
14
|
-
# The above copyright notice and this permission notice shall be included in
|
|
15
|
-
# all copies or substantial portions of the Software.
|
|
16
|
-
#
|
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
# THE SOFTWARE.
|
|
24
|
-
|
|
25
|
-
module Heya
|
|
26
|
-
class License
|
|
27
|
-
module Boundary
|
|
28
|
-
BOUNDARY_START = /(\A|\r?\n)-*BEGIN .+? LICENSE-*\r?\n/.freeze
|
|
29
|
-
BOUNDARY_END = /\r?\n-*END .+? LICENSE-*(\r?\n|\z)/.freeze
|
|
30
|
-
|
|
31
|
-
class << self
|
|
32
|
-
def add_boundary(data, product_name)
|
|
33
|
-
data = remove_boundary(data)
|
|
34
|
-
|
|
35
|
-
product_name.upcase!
|
|
36
|
-
|
|
37
|
-
pad = lambda do |message, width|
|
|
38
|
-
total_padding = [width - message.length, 0].max
|
|
39
|
-
|
|
40
|
-
padding = total_padding / 2.0
|
|
41
|
-
[
|
|
42
|
-
"-" * padding.ceil,
|
|
43
|
-
message,
|
|
44
|
-
"-" * padding.floor
|
|
45
|
-
].join
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
[
|
|
49
|
-
pad.call("BEGIN #{product_name} LICENSE", 60),
|
|
50
|
-
data.strip,
|
|
51
|
-
pad.call("END #{product_name} LICENSE", 60)
|
|
52
|
-
].join("\n")
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def remove_boundary(data)
|
|
56
|
-
after_boundary = data.split(BOUNDARY_START).last
|
|
57
|
-
in_boundary = after_boundary.split(BOUNDARY_END).first
|
|
58
|
-
|
|
59
|
-
in_boundary
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# The MIT License (MIT)
|
|
4
|
-
#
|
|
5
|
-
# Copyright (c) 2015 GitLab B.V.
|
|
6
|
-
#
|
|
7
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
# in the Software without restriction, including without limitation the rights
|
|
10
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
# furnished to do so, subject to the following conditions:
|
|
13
|
-
#
|
|
14
|
-
# The above copyright notice and this permission notice shall be included in
|
|
15
|
-
# all copies or substantial portions of the Software.
|
|
16
|
-
#
|
|
17
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
# THE SOFTWARE.
|
|
24
|
-
|
|
25
|
-
module Heya
|
|
26
|
-
class License
|
|
27
|
-
class Encryptor
|
|
28
|
-
class Error < StandardError; end
|
|
29
|
-
class KeyError < Error; end
|
|
30
|
-
class DecryptionError < Error; end
|
|
31
|
-
|
|
32
|
-
attr_accessor :key
|
|
33
|
-
|
|
34
|
-
def initialize(key)
|
|
35
|
-
if key && !key.is_a?(OpenSSL::PKey::RSA)
|
|
36
|
-
raise KeyError, "No RSA encryption key provided."
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
@key = key
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def encrypt(data)
|
|
43
|
-
unless key.private?
|
|
44
|
-
raise KeyError, "Provided key is not a private key."
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Encrypt the data using symmetric AES encryption.
|
|
48
|
-
cipher = OpenSSL::Cipher::AES128.new(:CBC)
|
|
49
|
-
cipher.encrypt
|
|
50
|
-
aes_key = cipher.random_key
|
|
51
|
-
aes_iv = cipher.random_iv
|
|
52
|
-
|
|
53
|
-
encrypted_data = cipher.update(data) + cipher.final
|
|
54
|
-
|
|
55
|
-
# Encrypt the AES key using asymmetric RSA encryption.
|
|
56
|
-
encrypted_key = key.private_encrypt(aes_key)
|
|
57
|
-
|
|
58
|
-
encryption_data = {
|
|
59
|
-
"data" => Base64.encode64(encrypted_data),
|
|
60
|
-
"key" => Base64.encode64(encrypted_key),
|
|
61
|
-
"iv" => Base64.encode64(aes_iv)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
json_data = JSON.dump(encryption_data)
|
|
65
|
-
Base64.encode64(json_data)
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def decrypt(data)
|
|
69
|
-
unless key.public?
|
|
70
|
-
raise KeyError, "Provided key is not a public key."
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
json_data = Base64.decode64(data.chomp)
|
|
74
|
-
|
|
75
|
-
begin
|
|
76
|
-
encryption_data = JSON.parse(json_data)
|
|
77
|
-
rescue JSON::ParserError
|
|
78
|
-
raise DecryptionError, "Encryption data is invalid JSON."
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
unless %w[data key iv].all? { |key| encryption_data[key] }
|
|
82
|
-
raise DecryptionError, "Required field missing from encryption data."
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
encrypted_data = Base64.decode64(encryption_data["data"])
|
|
86
|
-
encrypted_key = Base64.decode64(encryption_data["key"])
|
|
87
|
-
aes_iv = Base64.decode64(encryption_data["iv"])
|
|
88
|
-
|
|
89
|
-
begin
|
|
90
|
-
# Decrypt the AES key using asymmetric RSA encryption.
|
|
91
|
-
aes_key = self.key.public_decrypt(encrypted_key)
|
|
92
|
-
rescue OpenSSL::PKey::RSAError
|
|
93
|
-
raise DecryptionError, "AES encryption key could not be decrypted."
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
# Decrypt the data using symmetric AES encryption.
|
|
97
|
-
cipher = OpenSSL::Cipher::AES128.new(:CBC)
|
|
98
|
-
cipher.decrypt
|
|
99
|
-
|
|
100
|
-
begin
|
|
101
|
-
cipher.key = aes_key
|
|
102
|
-
rescue OpenSSL::Cipher::CipherError
|
|
103
|
-
raise DecryptionError, "AES encryption key is invalid."
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
begin
|
|
107
|
-
cipher.iv = aes_iv
|
|
108
|
-
rescue OpenSSL::Cipher::CipherError
|
|
109
|
-
raise DecryptionError, "AES IV is invalid."
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
begin
|
|
113
|
-
data = cipher.update(encrypted_data) + cipher.final
|
|
114
|
-
rescue OpenSSL::Cipher::CipherError
|
|
115
|
-
raise DecryptionError, "Data could not be decrypted."
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
data
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
end
|