yopass 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.gemspec +24 -0
  3. data/lib/yopass.rb +2 -2
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6cca10d2bb03134f016538e0e0be21922d2892df
4
- data.tar.gz: a9afa2e5d656ab66b1791b727e9b25ccfce8de70
3
+ metadata.gz: 68909d71c0c06e5eb5ba6a3ea82a2c94928a962c
4
+ data.tar.gz: 8c8dd2f30902aebf4cedb6fe7ffa3f09601adb21
5
5
  SHA512:
6
- metadata.gz: 6bdfc4de5bc5abb0a3d19646be89410d14469e7c1f2e48b3f3e734d1b8854f677237c9ef3948e163452181f648ab1f76b9662b41d6d7f46ee808435912556dd7
7
- data.tar.gz: 9cb9f97d16d1f1104d4fd25c38410141ee8f04d30a62ed4933c3755f17c985931f8c6ac30da145e34d58e6fcb07b452d2e25912ab0af5251424764e36d96165c
6
+ metadata.gz: 39a3f61c99ae9d728fddddeee9e9000c7df80de21e438f9eb4bdd98d7094d0c46c3f9e395c4e9fcf18def65a37e1d08527e2234b750473f3dcd2a6d10ae310c9
7
+ data.tar.gz: 8ddebc60e40c0299b2d8b13d7e3b10528d0e07dbd6e3bcfb3a052edd555c80489318401bec816501704858e6c6d22774117eaa907d3da3fc1665e61ddaa7aef5
data/.gemspec ADDED
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ Gem::Specification.new do |s|
3
+ # Metadata
4
+ s.name = 'yopass'
5
+ s.version = '1.0.1'
6
+ s.author = 'Johan Haals'
7
+ s.email = ['jhaals@spotify.com']
8
+ s.homepage = 'https://github.com/jhaals/yopass'
9
+ s.summary = 'Secure sharing for secrets and passwords'
10
+ s.description = 'Web service for sharing secrets more securely'
11
+ s.license = 'Apache 2.0'
12
+
13
+ # Manifest
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*_spec.rb`.split("\n")
16
+ s.require_paths = ['lib', 'conf']
17
+
18
+ # Dependencies
19
+ s.required_ruby_version = '>= 1.8.7'
20
+ s.add_runtime_dependency 'encryptor'
21
+ s.add_runtime_dependency 'memcached'
22
+ s.add_runtime_dependency 'sinatra'
23
+ end
24
+
data/lib/yopass.rb CHANGED
@@ -42,9 +42,9 @@ class Yopass < Sinatra::Base
42
42
  return 'This site is meant to store secrets not novels' if params[:secret].length >= 10000
43
43
 
44
44
  # goes in URL
45
- key = SecureRandom.urlsafe_base64 8
45
+ key = SecureRandom.hex
46
46
  # password goes in URL or via SMS if provider is configured
47
- password = SecureRandom.urlsafe_base64 8
47
+ password = SecureRandom.hex[0..8]
48
48
  # encrypt secret with generated password
49
49
  data = Encryptor.encrypt(params[:secret], :key => password)
50
50
  # store secret in memcached
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yopass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - .gemspec
62
63
  - Gemfile
63
64
  - README.md
64
65
  - conf/config.ru