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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/History.txt +2 -0
  3. data/lib/wikk_aes_256.rb +3 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 182e4428aaf24f3a65bf34503a6a4c51934eb349
4
- data.tar.gz: f1898701948216bb190c0b5cec7682bb98122029
3
+ metadata.gz: 886f2d97398a3ce3a1c78a90d0f6ec76c75f2972
4
+ data.tar.gz: 80e38ef061b85f4e0c37ae948d4f94c5bf8fd14b
5
5
  SHA512:
6
- metadata.gz: 524a29f5a84a51b83874c0621d776defaf0e07d4c77c8ad96dcfab0a00832ae76c203788ef2f94e657e44a4025c130cc2e42b10426a33ab68cbdc2b4a029a63f
7
- data.tar.gz: f4c141be831b11fd6bec33ff8aafb7b3f23f05cac2ebbb175a6da8803084a595d7b5b72fd4c9e68a700f10656ff5dbd3fead4cd012fe1348fc1d8cd9a42f689c
6
+ metadata.gz: 16449073449c064cab7882d0c0cf0af2fa9f18a6274ea007c572f3e857d6fd8a2b1e7ba07f077d0073a86c536f0cc39fcb094707f0a19ffa5ab8e6d2d18e9601
7
+ data.tar.gz: c2cae89059feecc28d8f01572c1f646d0c8de4f8366d57c0cc9a451b415d44e1b4edc9f9101129ec5075832ec01e17aeae36094176fd9da2d29f42b9b2df2a51
data/History.txt CHANGED
@@ -1,2 +1,4 @@
1
+ robertburrowes Wed Jun 22 15:37:29 2016 +1200
2
+ Removed trailing \n from base64 packed keys and iv
1
3
  robertburrowes Mon Jun 20 17:58:30 2016 +1200
2
4
  first commit
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.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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wikk_aes_256
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Burrowes