info_vault 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/infovault +3 -1
- data/lib/info_vault/cli.rb +1 -1
- data/lib/info_vault/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6040507bfc1eff33d13c70f87cbdb7469e3fd705
|
4
|
+
data.tar.gz: 1e3e75867b65862d960b7dfcbac71ea1fd39b7c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 329af5d01487c83ee894967e240a252f13471a9ce8099bb94434498a07ebecbe6c9ff61b6c5ca816dbb622a81011d06f9416be916654b76ea6217b381c412060
|
7
|
+
data.tar.gz: 49d2fcc5f827d951bc7074dbc93a4d4f895a86194c6262a75a120e38bd5949bbd17e941e408a439603f7051163fddfebf36c6de9345eb2226d91352d7b21818a
|
data/bin/infovault
CHANGED
data/lib/info_vault/cli.rb
CHANGED
@@ -7,7 +7,7 @@ class Infovault < Thor
|
|
7
7
|
# Encrypt
|
8
8
|
# encrypt("key","value","password",OpenSSL::Random.random_bytes(8))
|
9
9
|
def encrypt(key,value,pass_phrase,salt=OpenSSL::Random.random_bytes(8),file="")
|
10
|
-
file = File.open(File.expand_path(File.join('config','protected_info.yaml')),'
|
10
|
+
file = File.open(File.expand_path(File.join('config','protected_info.yaml')),'w') if file.empty?
|
11
11
|
encrypter = OpenSSL::Cipher.new 'AES-128-CBC'
|
12
12
|
encrypter.encrypt
|
13
13
|
encrypter.pkcs5_keyivgen pass_phrase, salt
|
data/lib/info_vault/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: info_vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Franko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|