An open API service indexing awesome lists of open source software.

https://github.com/objarni/webcrypto

An experiment in keeping small amount of encrypted data public on web
https://github.com/objarni/webcrypto

Last synced: 8 months ago
JSON representation

An experiment in keeping small amount of encrypted data public on web

Awesome Lists containing this project

README

          

webcrypto
=========

Is it possible to keep a small amount of symmetrically encrypted data public
on the web and still sleep good at night?

This is an experiment attempting to answer that question.

Dependencies
------------
Written in Python 2.7. No other dependencies.

Run
---
Assuming there is a file "secret.py" containing two byte string constants CLEARTEXT and CRYPTO, you can test encrypting and decrypting CLEARTEXT using:

python main.py

For example, if secret.py contains these two lines:

CLEARTEXT = b'This is some unencrypted text.'
CRYPTO = b'My super secret and very long password'

.. then you should get this output:

$ python main.py
cleartext This is some unencrypted text.
encrypted GRFJAFUZFlJTHAgGUhAaRQ8NFlkGERcdABgKFhMO
decrypted This is some unencrypted text.

Run tests
---------

python test.py