GithubHelp home page GithubHelp logo

iqinit / yopass Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jhaals/yopass

0.0 2.0 0.0 1.13 MB

Secure sharing for secrets and passwords

Home Page: https://yopass.se

License: Other

HTML 39.97% JavaScript 10.22% Go 49.81%

yopass's Introduction

Yopass - Share Secrets Securely

Build Status

Yopass is a project for sharing secrets in a quick and secure manner*. The sole purpose of Yopass is to minimize the amount of passwords floating around in ticket management systems, IRC logs and emails. The message is encrypted/decrypted locally in the browser and then sent to yopass without the decryption key which is only visible once to the user during encryption, yopass then returns a one-time URL with specified expiry date.

There is no perfect way of sharing secrets online and there is a trade off in every implementation. Yopass is designed to be as simple and "dumb" as possible without compromising on security. There's no mapping between the generated UUID and the user that submitted the encrypted message. It's always best send all the context except password over another channel.

Yopass is rewritten from ruby to go. The old version still exist on rubygems or in tag 3.0.7

Available here

  • AES-256 encryption
  • Secrets can only be viewed once
  • No secrets are written to disk
  • No accounts or user management required
  • Secrets self destruct after X hours

Installation / Configuration

It's highly recommended to run TLS encryption using nginx/apache or yopass builtin TLS server.

Docker

docker run --name memcached_yopass -d memcached

TLS encryption

docker run -p 1337:1337 -v /local/certs/:/certs -e TLS_CERT=/certs/tls.crt \
    -e TLS_KEY=/certs/tls.key -e 'MEMCACHED=memcache:11211' --link memcached_yopass:memcache -d jhaals/yopass

Plain(make sure this is restricted to localhost)

docker run -p 1337:1337 -e 'MEMCACHED=memcache:11211' --link memcached_yopass:memcache -d jhaals/yopass
Install locally
go get github.com/jhaals/yopass
MEMCACHED=memcache:11211 go run yopass.go

API

All endpoints expect JSON

Create secret - POST /secret

secret   - aes-256-cbc (openssl formatted)
expiration - 3600, 86400, 604800


Returns 200
{
  key: "ecfe32c7-266f-11e5-ad90-34363bcbad30",
  message: "secret stored"
}

Get secret - GET /secret/{key}

{
  secret: "=AKJF7\sKJFVUA==",
  message: "OK"
}

Secret status - HEAD /secret/{key}

Returns 200 if {key} exists otherwise 404

Screenshot

YoPass website

yopass's People

Contributors

carlasouza avatar jhaals avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.