项目作者: AnandBaburajan

项目描述 :
Steganography tool to embed hidden text in videos
高级语言: Python
项目地址: git://github.com/AnandBaburajan/TwoPixels.git
创建时间: 2019-07-12T11:10:15Z
项目社区:https://github.com/AnandBaburajan/TwoPixels

开源协议:MIT License

下载


TwoPixels

A Python steganography tool to hide text in videos using the HSV values of pixels.

Each frame of the carrier video stores a bit of the text using two pixels at two corners of the frame. The hidden text can be accurately extracted from the video using the difference of HSV value dimensions of the two pixels in each frame.

Installation

  1. pip install -r requirements.txt

Usage

  1. Usage:
  2. TwoPixels.py encode -i <input> -o <output> -t <text>
  3. TwoPixels.py decode -i <input>
  4. Options:
  5. -h, --help Show this help
  6. -t, --text=<file> Text to hide
  7. -i, --in=<input> Input video file
  8. -o, --out=<output> Resultant video file

Import as python module

  1. # encoding
  2. >>> import TwoPixels as TP
  3. >>> TP.encode_vid("video.mp4", "result.mp4", "Hello")
  4. # decoding
  5. >>> import TwoPixels as TP
  6. >>> print(TP.decode_vid("result.mp4"))
  7. Hello