minienigma 0.0.7 → 0.0.8
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/lib/minienigma.rb +3 -3
- 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: 768bd6b50e116b985418eea27faa734b1c69a995
|
|
4
|
+
data.tar.gz: a5510b522e1df54be44ac15a56fb86cfe7e36f0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac9a69762c127577e34945f0b104de27f6bf09ab651fca00b1a46407bee1bd81390ad36c0a54864ea20d5f86776bc5ec3c5899fca1e883e789487b687d115a2a
|
|
7
|
+
data.tar.gz: 9eabc7f75cb2bece53a84dc284ebeef848945a39d09ec667e65e3128c3f7aa9072f60de71d77eac152e896580b967dc60b911981192725e58c50f4ff10251388
|
data/lib/minienigma.rb
CHANGED
|
@@ -2,8 +2,8 @@ require 'openssl'
|
|
|
2
2
|
require 'base64'
|
|
3
3
|
|
|
4
4
|
class MiniEnigma
|
|
5
|
-
@@key = '
|
|
6
|
-
@@iv = '
|
|
5
|
+
@@key = ''
|
|
6
|
+
@@iv = ''
|
|
7
7
|
|
|
8
8
|
def self.configure(key, iv)
|
|
9
9
|
@@key = key
|
|
@@ -35,7 +35,7 @@ class MiniEnigma
|
|
|
35
35
|
plain_data = decipher.update(Base64.decode64(data)) + decipher.final
|
|
36
36
|
return plain_data.force_encoding('UTF-8')
|
|
37
37
|
rescue Exception => e
|
|
38
|
-
puts e
|
|
38
|
+
puts e.backtrace
|
|
39
39
|
return nil
|
|
40
40
|
end
|
|
41
41
|
end
|