Skip to main content

It's like SnapChat... for Passwords.

Project description

Latest version released on PyPI Build status

It’s like SnapChat… for passwords.

This is a web app that lets you share passwords securely.

Let’s say you have a password. You want to give it to your coworker, Jane. You could email it to her, but then it’s in her email, which might be backed up, and probably is in some storage device controlled by the NSA.

You could send it to her over chat, but chances are Jane logs all her messages because she uses Google Hangouts Chat, and Google Hangouts Chat might log everything.

You could write it down, but you can’t find a pen, and there’s way too many characters because your security person, Paul, is paranoid.

So we built SnapPass. It’s not that complicated, it does one thing. If Jane gets a link to the password and never looks at it, the password goes away. If the NSA gets a hold of the link, and they look at the password… well they have the password. Also, Jane can’t get the password, but now Jane knows that not only is someone looking in her email, they are clicking on links.

Anyway, this took us very little time to write, but we figure we’d save you the trouble of writing it yourself, because maybe you are busy and have other things to do. Enjoy.

Security

Passwords are encrypted using Fernet symmetric encryption, from the cryptography library. A random unique key is generated for each password, and is never stored; it is rather sent as part of the password link. This means that even if someone has access to the Redis store, the passwords are still safe.

Requirements

  • Redis

  • Python 2.7+ or 3.4+ (both included)

Installation

$ pip install snappass
$ snappass
* Running on http://0.0.0.0:5000/
* Restarting with reloader

Configuration

You can configure the following via environment variables.

SECRET_KEY: unique key that’s used to sign key. This should be kept secret. See the Flask Documentation for more information.

DEBUG: to run Flask web server in debug mode. See the Flask Documentation for more information.

STATIC_URL: this should be the location of your static assets. You might not need to change this.

NO_SSL: if you are not using SSL.

REDIS_HOST: this should be set by Redis, but you can override it if you want. Defaults to "localhost"

REDIS_PORT: is the port redis is serving on, defaults to 6379

SNAPPASS_REDIS_DB: is the database that you want to use on this redis server. Defaults to db 0

REDIS_URL: (optional) will be used instead of REDIS_HOST, REDIS_PORT, and SNAPPASS_REDIS_DB to configure the Redis client object. For example: redis://username:password@localhost:6379/0

REDIS_PREFIX: (optional, defaults to "snappass") prefix used on redis keys to prevent collisions with other potential clients

Docker

Alternatively, you can use Docker and Docker Compose to install and run SnapPass:

$ docker-compose up -d

This will pull all dependencies, i.e. Redis and appropriate Python version (3.7), then start up SnapPass and Redis server. SnapPass server is accessible at: http://localhost:5000

We’re Hiring!

Are you really excited about open-source and great software engineering? Pinterest is hiring!

Credits

“snappass” is originally written and by Owen Coutts and Ryan Park.

It is currently maintained by Nicholas Charriere and Yongwen Xu from Pinterest.

Thanks a lot for the contributions of:

  • Owen Coutts

  • Ryan Park

  • Yongwen Xu

  • Nicholas Charriere

  • Samuel Dion-Girardeau

  • James W Thorne

  • Brandon Davis

  • Joseph Boiteau

  • Carlos Moreno

  • Donny Winston

  • James Barclay

  • Thomas Decaux

  • Lauri Lubi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snappass-1.4.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

snappass-1.4.2-py2-none-any.whl (1.1 MB view details)

Uploaded Python 2

File details

Details for the file snappass-1.4.2.tar.gz.

File metadata

  • Download URL: snappass-1.4.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for snappass-1.4.2.tar.gz
Algorithm Hash digest
SHA256 fc891e12062c228bc9ee5a89f028b63bfaa2e0d91141d8207d94d6a76806b1e9
MD5 54a027f0e1114acf32c31d22e185db66
BLAKE2b-256 370a3880a7dc80f5a5dffef2d75b11aef4917b65a8c8c270ef203eb71fdf8781

See more details on using hashes here.

Provenance

File details

Details for the file snappass-1.4.2-py2-none-any.whl.

File metadata

  • Download URL: snappass-1.4.2-py2-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for snappass-1.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 52f708858d318468fc3ff3c0e86a8e3f3f0d5a9876ad6e536e11c41c2608df79
MD5 ccd6bf08f852311a9a0f832f532b0031
BLAKE2b-256 e56697b1b4b870b9663bbf758ac28204a39eee68e598aa0be2b75e668436e315

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page