eeny-meeny 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -5
- data/CHANGELOG.md +7 -0
- data/eeny-meeny.gemspec +1 -1
- data/lib/eeny-meeny/models/encryptor.rb +2 -2
- data/lib/eeny-meeny/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a41d2bcdbde35c876dc16bf000f3fbbf6b88db74
|
4
|
+
data.tar.gz: 9a67ccc58b5c803a442b2ad4eae6bf5d3f943c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz: '
|
6
|
+
metadata.gz: d9b72b27bfcafae526af2566c1db0adc0c8cd717825d376cf68738572c385ac37889c9aa57a593b9364c459a5dbe7c72e88ab2644a84f06f0d1b0e10d657c6b3
|
7
|
+
data.tar.gz: '013679315176da558395a14d3f3dbfa66e975b9b1cc97a319164cf1d62c997c7be93905429f947f88a7c89220afe1efc537d4bbb590278a12b778bce01acfeca'
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/eeny-meeny.gemspec
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/eeny-meeny/version', __FILE__)
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'eeny-meeny'
|
5
5
|
s.version = EenyMeeny::VERSION.dup
|
6
|
-
s.date = '2018-
|
6
|
+
s.date = '2018-09-09'
|
7
7
|
s.summary = "A simple split and smoke testing tool for Rails"
|
8
8
|
s.authors = ["Christian Orthmann"]
|
9
9
|
s.email = 'christian.orthmann@gmail.com'
|
@@ -92,7 +92,7 @@ module EenyMeeny
|
|
92
92
|
# Encrypts the given message with a random IV, then returns the ciphertext
|
93
93
|
# with the IV prepended.
|
94
94
|
def encrypt_message(message)
|
95
|
-
aes = OpenSSL::Cipher
|
95
|
+
aes = OpenSSL::Cipher.new(@cipher).encrypt
|
96
96
|
aes.key = @encryption_key
|
97
97
|
iv = aes.random_iv
|
98
98
|
aes.iv = iv
|
@@ -105,7 +105,7 @@ module EenyMeeny
|
|
105
105
|
# OpenSSL errors and returns nil. But this should never happen, as the
|
106
106
|
# verify method should catch all corrupted ciphertexts.
|
107
107
|
def decrypt_ciphertext(ciphertext)
|
108
|
-
aes = OpenSSL::Cipher
|
108
|
+
aes = OpenSSL::Cipher.new(@cipher).decrypt
|
109
109
|
aes.key = @encryption_key
|
110
110
|
iv = ciphertext[0, aes.iv_len]
|
111
111
|
aes.iv = iv
|
data/lib/eeny-meeny/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eeny-meeny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Orthmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|