yopass 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemspec +24 -0
- data/lib/yopass.rb +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68909d71c0c06e5eb5ba6a3ea82a2c94928a962c
|
4
|
+
data.tar.gz: 8c8dd2f30902aebf4cedb6fe7ffa3f09601adb21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
45
|
+
key = SecureRandom.hex
|
46
46
|
# password goes in URL or via SMS if provider is configured
|
47
|
-
password = SecureRandom.
|
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.
|
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
|