Public | Automated Build

Last pushed: a year ago
Short Description
It's like SnapChat... for passwords.
Full Description



|pypi| |build|

.. |pypi| image::
:alt: Latest version released on PyPI

.. |build| image::
:alt: Build status

It's like SnapChat... for Passwords.

This is a webapp 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 Talk, and Google Talk logs 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.


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.

.. _Fernet:
.. _cryptography:


  • Redis.
  • Python 2.6, 2.7 or 3.3+.



$ pip install snappass
$ snappass
* Running on
* Restarting with reloader


You can configure the following via environment variables.

SECRET_KEY this should be a 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 is optional and, if set, 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


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

.. _Docker:
.. _Docker Compose:


$ docker-compose up -d

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

Docker Pull Command
Source Repository