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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04c0530b0a65f7f72d719fd7c6caf06935b13fef
4
- data.tar.gz: e9f9b03c19787d5079c1309c72fc45afd9d16509
3
+ metadata.gz: eef9816ddd75622233f6fcefbf3a961ac3632447
4
+ data.tar.gz: 038aa7cebb1aedeef9a2a0ae2bf2d51c3114ccb1
5
5
  SHA512:
6
- metadata.gz: ff8940058084df79cd6b99aaf77db8d4031269b7bce2d7d2694744f4990a8c3a29008f11f74e91cceff693df2825fa6cad45e23a50a2168201b48fdee5e4fd1a
7
- data.tar.gz: 3105d2ad9e7483e506a3091a65e89a820f70cdcc1624cfc2b949b909a6369bd1e28903d44fa0dbb2edc5bcbbd1077af9537ad91814f12a028de02c863976c007
6
+ metadata.gz: 2c87bc9df7b0ded42e6fa4d7be53be33fea29f6ba4a7e5553fce4b96b221f4ba4df418fb34a83cc6d399a71e409f6e21bafadba51fa1457b24950da10d60fb89
7
+ data.tar.gz: f0b78a15ad6932b8ce8a60e80324e0c19febe9b3ee7105d4ed5cdb4800ff779d8cc41460ba826b068d513e4624cd8b3fd9cc0eb06439cecb3cb94098d9ad441a
data/Gemfile CHANGED
@@ -1,6 +1,5 @@
1
1
  # -*- mode: ruby -*-
2
2
  source 'https://rubygems.org'
3
- ruby '2.0.0'
4
3
 
5
4
  group :development do
6
5
  gem 'rspec', '~> 2.14'
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
- **Status:** Just have a README! Working on the rest.
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
- ````ruby
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
- ````bash
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
- ````ruby
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
- ````ruby
52
+ ````
50
53
  $ envcrypt -p Orange -k $ENVCRYPT_KEY
51
54
  ````
52
55
 
@@ -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 = '~> 2'
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")
@@ -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: ENV['ENVCRYPT_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
@@ -1,3 +1,3 @@
1
1
  module Envcrypt
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2014-06-01 00:00:00.000000000 Z
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: '2'
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: []
@@ -1 +0,0 @@
1
- 2.0.0-p353