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
- Host: GitHub
- URL: https://github.com/objarni/webcrypto
- Owner: objarni
- License: mit
- Created: 2014-11-26T08:35:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-29T09:17:15.000Z (over 11 years ago)
- Last Synced: 2025-02-06T11:55:18.524Z (over 1 year ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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