encrypted-keystore 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/Readme.md +2 -0
- data/encrypted-keystore.gemspec +1 -1
- data/lib/encrypted_keystore.rb +2 -2
- 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: c4bb01552114d8a853473326d58e3bc1591065a2
|
4
|
+
data.tar.gz: cfa75eedfd816c60351368ee855a6465021b1d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1e58ae9cf57a86991ce296b7c046dc493df822452ba9d4ebb504c71adfbac449f35d6b82f3860e8c9bf9cb15a31662f88d04535a68896e2e0c48501f26f12d1
|
7
|
+
data.tar.gz: 4f7f948b77103a280524e649793ec00533512ca28a749daa006b83c796ceb8dade8c4591290c3af3595236daa1a24bd4da99379a9e8355d4cdc22755374c5402
|
data/Gemfile.lock
CHANGED
data/Readme.md
CHANGED
data/encrypted-keystore.gemspec
CHANGED
data/lib/encrypted_keystore.rb
CHANGED
@@ -6,14 +6,14 @@ class EncryptedKeystore
|
|
6
6
|
|
7
7
|
attr_accessor :file, :out, :key, :iv
|
8
8
|
|
9
|
-
def self.encrypt(file, out)
|
9
|
+
def self.encrypt(file: nil, out: nil)
|
10
10
|
enc = new(file: file, out: out)
|
11
11
|
enc.encrypt
|
12
12
|
|
13
13
|
{ key: enc.key, iv: enc.iv }
|
14
14
|
end
|
15
15
|
|
16
|
-
def self.decrypt(file, out, key, iv)
|
16
|
+
def self.decrypt(file: nil, out: nil, key: nil, iv: nil)
|
17
17
|
enc = new(file: file, out: out, key: key, iv: iv)
|
18
18
|
enc.decrypt
|
19
19
|
end
|