mobile-secrets 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mobile-secrets.rb +1 -1
- data/lib/src/secrets_handler.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dac63b4dd181e9c103b09d3731c278027b824efd3d111df3d1bdb9ef643916c9
|
4
|
+
data.tar.gz: aa9fb1acc5d381192bc6aa407e922fc3c2d07071cb881b5bcd5c8b05bb0759d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca7520a8970dcf937921463be547a72a1a7a47d992fc3ee91926f213de358ced059694d1b479c54ff8eb43838a253f2d41f32ec3df9faddd92bc45d24fd80ca9
|
7
|
+
data.tar.gz: 6bbbff40235f340cd8138ab9f33295b1f3dba98fee4cb835bd1ad299edda38b131b85766f1a563e74e31952a722fd32038a21449f0ef4be84002813a2de468fa
|
data/lib/mobile-secrets.rb
CHANGED
@@ -24,7 +24,7 @@ module MobileSecrets
|
|
24
24
|
opt << "--create-template \t\tCreates a template yml file to configure the MobileSecrets\n"
|
25
25
|
opt << "--import SECRETS_PATH \t\tAdds MobileSecrets to GPG secrets\n"
|
26
26
|
opt << "--export PATH \t\t\tCreates source file with obfuscated secrets at given PATH\n"
|
27
|
-
opt << "--encrypt-file \
|
27
|
+
opt << "--encrypt-file FILE PASSWORD \tEncrypt a single file with AES\n"
|
28
28
|
opt << "--usage \t\t\tManual for using MobileSecrets.\n\n"
|
29
29
|
opt << "Examples:\n"
|
30
30
|
opt << "--import \"./MobileSecrets.yml\"\n"
|
data/lib/src/secrets_handler.rb
CHANGED
@@ -32,7 +32,7 @@ module MobileSecrets
|
|
32
32
|
end
|
33
33
|
|
34
34
|
if files
|
35
|
-
abort("Password must be
|
35
|
+
abort("Password must be 32 characters long for files encryption.") if hash_key.length != 32
|
36
36
|
files.each do |f|
|
37
37
|
encrypt_file hash_key, f, "#{f}.enc"
|
38
38
|
file_names_bytes << f.bytes
|