wikk_aes_256 0.1.1 → 0.1.2
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/History.txt +2 -0
- data/lib/wikk_aes_256.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 886f2d97398a3ce3a1c78a90d0f6ec76c75f2972
|
4
|
+
data.tar.gz: 80e38ef061b85f4e0c37ae948d4f94c5bf8fd14b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16449073449c064cab7882d0c0cf0af2fa9f18a6274ea007c572f3e857d6fd8a2b1e7ba07f077d0073a86c536f0cc39fcb094707f0a19ffa5ab8e6d2d18e9601
|
7
|
+
data.tar.gz: c2cae89059feecc28d8f01572c1f646d0c8de4f8366d57c0cc9a451b415d44e1b4edc9f9101129ec5075832ec01e17aeae36094176fd9da2d29f42b9b2df2a51
|
data/History.txt
CHANGED
data/lib/wikk_aes_256.rb
CHANGED
@@ -7,7 +7,7 @@ module WIKK
|
|
7
7
|
# @attr_reader [String] plain_text the decrypted text
|
8
8
|
# @attr_reader [String] cipher_text the encrypted text
|
9
9
|
class AES_256
|
10
|
-
VERSION = "0.1.
|
10
|
+
VERSION = "0.1.2"
|
11
11
|
AES_256_CBC = "AES-256-CBC"
|
12
12
|
|
13
13
|
attr_reader :plain_text, :cipher_text
|
@@ -21,6 +21,8 @@ module WIKK
|
|
21
21
|
if(key_string == nil)
|
22
22
|
gen_key
|
23
23
|
gen_iv
|
24
|
+
elsif gen_iv == nil
|
25
|
+
gen_iv
|
24
26
|
else
|
25
27
|
str_to_key(key_string)
|
26
28
|
str_to_iv(iv_string)
|