envcrypt 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/README.md +8 -5
- data/envcrypt.gemspec +1 -1
- data/lib/envcrypt/envcrypt.rb +1 -1
- data/lib/envcrypt/version.rb +1 -1
- metadata +8 -9
- data/.ruby-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eef9816ddd75622233f6fcefbf3a961ac3632447
|
4
|
+
data.tar.gz: 038aa7cebb1aedeef9a2a0ae2bf2d51c3114ccb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c87bc9df7b0ded42e6fa4d7be53be33fea29f6ba4a7e5553fce4b96b221f4ba4df418fb34a83cc6d399a71e409f6e21bafadba51fa1457b24950da10d60fb89
|
7
|
+
data.tar.gz: f0b78a15ad6932b8ce8a60e80324e0c19febe9b3ee7105d4ed5cdb4800ff779d8cc41460ba826b068d513e4624cd8b3fd9cc0eb06439cecb3cb94098d9ad441a
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,13 +4,16 @@ Envcrypt
|
|
4
4
|
Envcrypt provides an easy way to securely encrypt and decrypt secrets
|
5
5
|
(passwords) that need to be stored for use in automated processes.
|
6
6
|
|
7
|
-
|
7
|
+
## Install
|
8
|
+
````bash
|
9
|
+
gem install envcrypt
|
10
|
+
````
|
8
11
|
|
9
12
|
## Use
|
10
13
|
|
11
14
|
Encrypt a secret via
|
12
15
|
|
13
|
-
````
|
16
|
+
````
|
14
17
|
$ envcrypt -s Orange
|
15
18
|
Encrypted Secret: zTbH59gpFIIuXGYRuK9pHQ==
|
16
19
|
ENVCRYPT_KEY='eWa7QqyF6eE/bEthGO4BgA==$9OZzJ6xIgEcovfEOHIhVb9Gaw5/FeSgDmTErws1+API=$ccRiLqJjyL6MypWHOGfpcQ=='
|
@@ -19,12 +22,12 @@ WARNING: It is critical that the key and encryption password be stored separatel
|
|
19
22
|
|
20
23
|
Set the key as an environment variable (bash example)
|
21
24
|
|
22
|
-
````
|
25
|
+
````
|
23
26
|
$ export ENVCRYPT_KEY='eWa7QqyF6eE/bEthGO4BgA==$9OZzJ6xIgEcovfEOHIhVb9Gaw5/FeSgDmTErws1+API=$ccRiLqJjyL6MypWHOGfpcQ=='
|
24
27
|
````
|
25
28
|
|
26
29
|
Go ahead and test decryption from the command line
|
27
|
-
````
|
30
|
+
````
|
28
31
|
$ envcrypt -d 'zTbH59gpFIIuXGYRuK9pHQ=='
|
29
32
|
Decrypted: Orange
|
30
33
|
````
|
@@ -46,7 +49,7 @@ By default a new encryption key is created for each use command line
|
|
46
49
|
`envcrypt` tool. Secrets can also be encrypted using existing keys if
|
47
50
|
you want to use one key to encrypt multiple secrets.
|
48
51
|
|
49
|
-
````
|
52
|
+
````
|
50
53
|
$ envcrypt -p Orange -k $ENVCRYPT_KEY
|
51
54
|
````
|
52
55
|
|
data/envcrypt.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.description = "Simple secure encryption/decryption of secret data (passwords)"
|
15
15
|
s.rubyforge_project = "envcrypt"
|
16
16
|
|
17
|
-
s.required_ruby_version = '~>
|
17
|
+
s.required_ruby_version = '~> 1.9.3'
|
18
18
|
|
19
19
|
s.files = `git ls-files`.split("\n")
|
20
20
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/envcrypt/envcrypt.rb
CHANGED
@@ -17,7 +17,7 @@ module Envcrypt
|
|
17
17
|
#
|
18
18
|
# key - A string representing the key to be used for encryption
|
19
19
|
# and decryption (default: ENV['ENVCRYPT_KEY'])
|
20
|
-
def initialize(key
|
20
|
+
def initialize(key = ENV['ENVCRYPT_KEY'])
|
21
21
|
@key = key == nil ? generate_key : key
|
22
22
|
@de_cipher = nil
|
23
23
|
@en_cipher = nil
|
data/lib/envcrypt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envcrypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sterling Paramore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Simple secure encryption/decryption of secret data (passwords)
|
14
14
|
email:
|
@@ -18,10 +18,9 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- .bundle/config
|
22
|
-
- .gitignore
|
23
|
-
- .rspec
|
24
|
-
- .ruby-version
|
21
|
+
- ".bundle/config"
|
22
|
+
- ".gitignore"
|
23
|
+
- ".rspec"
|
25
24
|
- Gemfile
|
26
25
|
- Gemfile.lock
|
27
26
|
- LICENSE
|
@@ -42,12 +41,12 @@ require_paths:
|
|
42
41
|
- lib
|
43
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
|
-
- - ~>
|
44
|
+
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
46
|
+
version: 1.9.3
|
48
47
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
|
-
- -
|
49
|
+
- - ">="
|
51
50
|
- !ruby/object:Gem::Version
|
52
51
|
version: '0'
|
53
52
|
requirements: []
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.0.0-p353
|