Skip to content
No description or website provided.
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
README.txt
genkeys.py
hamlet.txt
overview.org
overview.pdf
overview.tex
proposal.org
proposal.txt
requirements.txt
sneak_twitter.py
sneaky.py
test.bmp
test2.bmp
watermark.py
william.bmp

README

Overview:

We implemented modules that can do one of two things:
   1. Encode messages onto images and post the images to Twitter; read the
      image from Twitter and decode the message. (Zach)
   2. Encrypt messages using RSA and encode them on an image; read the
      image and decode/decrypt the message. (Nick)

We would have integrated these, but due to a miscommunication and lack of
time, they are separate features.

Usage:

1.

2. To run the RSA encryption and encoding, you first need to generate a
   keypair. To do this, run
   
     python genkeys.py pub_file priv_file

   to save public and private keys to their respective files. To encode
   the message, run

     python watermark.py encode plain_img out_img in_txt pub_key

   This will encrypt in_txt with pub_key and encode it onto a copy of
   plain_img and save the resulting image to out_img.

   To decode the message, run

     python watermark.py decode encoded_img out_file priv_key

   This will decode the message from encoded_img, decrypt it with priv_key,
   and save it to out_file.

Libraries:
   PIL 1.1.7
   PyCrypto 2.5
Something went wrong with that request. Please try again.