Skip to content

Shaashwat05/spy_bot

Repository files navigation

forthebadge made-with-python

Python 3.6

spy_bot

It is a bot that uses raspberry pi and its camera to take secret images. To encrypt these images we use RSA encryption from the crypto library of python. We use it with OAEP(Optimal Assymetric Encryption Padding). After encryption with the public key, the private key and the encrypted image are stored in a firebase Realtime Database. These can be retrived and decrypted as per will.

Prerequisites

What things you need to install the software and how to install them

cv2
numpy 
firebase
zlib
base64
time
crypto

Getting Started

Download a python interpeter preferable a version beyond 3.0. Install the prerequisute libraries given above.Also, the above prerequisits may not be enough to run firebase, but they easily be identified from the errors and repectively pip install them. Replace the firebase url with proper credentials/requirements. Run the main_deploy.py file to capture an image , encrypt it, and deploy. Only after encrypting can the main_retrive.py be run, or else it will give error.

$ main_deploy.py

$ main_retrive.py

Cloning

$ git clone https://github.com/Shaashwat05/spy_bot

Decrypted Image

The output image is decrypted losslessly.

The input Image to cartoonize.py

Built With

Authors

LinkedIn-profile Github-profile

Acknowledgments

  • Hat tip to anyone whose code was used

About

An bot that uses rpi and cmera to take secret images, encode it with RSA algorithm and uploads the image and key safetly on a cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages