Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/elliotwutingfeng/secret_broadcast

Send encrypted webcam snapshots over Telegram to specific users.
https://github.com/elliotwutingfeng/secret_broadcast

cryptography fernet telegram webcam

Last synced: 6 days ago
JSON representation

Send encrypted webcam snapshots over Telegram to specific users.

Awesome Lists containing this project

README

        

# secret_broadcast

[![Python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge&logo=python&logoColor=blue)](https://python.org)
[![Telegram](https://img.shields.io/badge/Telegram-26A5E4?style=for-the-badge&logo=telegram&logoColor=white)](https://telegram.org)
[![LICENSE](https://img.shields.io/badge/LICENSE-APACHE--2.0-GREEN?style=for-the-badge)](LICENSE)

Send encrypted webcam snapshots over Telegram to specific users.

## Setup

You will need a webcam that can be accessed via [OpenCV](https://pypi.org/project/opencv-python).

First create **.env**

```bash
cp .env-dev .env
```

Fill up **.env** with the relevant data; you will need your [Telegram bot API token](https://core.telegram.org/bots/api), a list of Telegram user Chat IDs (obtainable by first manually sending messages to your bot from each user, and then running `bot_get_updates(token)`), and a strong password for your encrypted images. The contents of **.env** _must_ be kept secret.

Then run

```bash
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements.txt
```

## Usage

```bash
venv/bin/python3 main.py
```

## Is it secret? Is it safe?

No guarantees. If your bot conversation has been leaked, the messages still need to be decrypted individually.