Giter Site home page Giter Site logo

pandora-mp4's Introduction

Pandora MP4

This repository contains two Python scripts that demonstrate a technique for concealing data by encoding a video file and JSON data using base64 encoding. This approach showcases a basic form of steganography, where information is hidden within seemingly innocuous files.

Encoding Process

The first script, encode.py, performs the following steps:

  • Reads a JSON file located at data/data.json.
  • Converts the JSON into a string and encodes it using base64.
  • Reads a video file from data/video.mp4.
  • Uses b"VIDEOJSONSEPARATOR" as a unique separator.
  • Combines the video data and the encoded JSON string with the separator.
  • Creates a new video file at output/video_c.mp4 with the combined data.

Decoding Process

The second script, decode_script.py, executes the following actions:

  • Reads the encoded video file from output/video_c.mp4.
  • Locates the position of b"VIDEOJSONSEPARATOR" within the video file.
  • Separates the video data and the encoded JSON string based on the separator's position.
  • Decodes the base64-encoded string, revealing the original JSON content.
  • Displays the decoded JSON content in the terminal.

Usage

Clone this repository:

git clone https://github.com/your-user/your-repo.git

Ensure Python is installed on your system.

Navigate to the cloned directory:

cd your-repo

Run the first script to encode data within the video:

python encode.py

This will create an encoded video file in the output folder.

Run the second script to decode and display the concealed data:

python decode.py

The hidden JSON content will be revealed in the terminal.

Considerations

These scripts provide educational insight into basic steganography using base64 encoding. They might not be suitable for secure or production-level data concealment. Ensure that data.json and video.mp4 are correctly placed before running the scripts. Note that this repository is intended for educational purposes and might require modifications for specific use cases.

pandora-mp4's People

Contributors

gabrielbeguren avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.