encrypter_decrypter_files 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/encrypter_decrypter/base.rb +1 -0
- data/lib/encrypter_decrypter/decrypt.rb +1 -1
- data/lib/encrypter_decrypter/encrypt.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjMxYjIwOWZhY2MyZDkwMGU2N2E3YTczYWM3ZjhhOWM4ZjE1MGU2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTZkNzBmMzdlY2U1MDc4ZmUzYjJlZTAzNTBlNmUzMjJmNzVkYTc0Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDRlZGZhMmMyNmVjMWQyZWYyOTM0OWVjZTE0MDQ1YTVlNTA5ZTQyMDg2YWE0
|
10
|
+
N2RlMTY5MzI0YTNkNmVlOTY2MGVlNDEyNGE0MDk1ZGRkNmZmMDFiY2ExMjg2
|
11
|
+
MGMwOWM5MDgxZWM4ZDMzMThkYTc2NzI0ZmI5YTE4MGExZDg0YTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTVkODdhNzI2OGQzZGU3MTRiNTJiMTFjMDQ1N2FmMjgxOTU4NmY1ZDA5NTBi
|
14
|
+
NTc2MTdjNjFmZTU0NDI0OGM2YmFiOGNhZTdlNmEyMTZlN2YyZjg3MjAyMTY3
|
15
|
+
YjkyNTRjMjhhZDJlNjRjNDdiMWI3YWIyYjk5ZGZiZjAxN2Y4Nzg=
|
@@ -12,7 +12,7 @@ def trigger_decryption
|
|
12
12
|
key = data[original_file_name][:key]
|
13
13
|
iv = data[original_file_name][:iv]
|
14
14
|
|
15
|
-
cipher = OpenSSL::Cipher.new(
|
15
|
+
cipher = OpenSSL::Cipher.new("aes-#{@key_size}-cbc")
|
16
16
|
cipher.decrypt
|
17
17
|
cipher.key = key
|
18
18
|
cipher.iv = iv
|