Skip to main content

Functions to add steganographic message to a dataframe with row permutation

Project description

Steganodf

This is a Python tool for hiding a secret message in a tabulated file ( e.g: CSV file ) . It works by swapping blocks of 6 lines, each capable of storing 1 bytes ( 6! > 255 bits )

The dataframe is first sorted by the computed hash of each line. HMAC is also supported if you provide a password. This method does not alter the data, but the watermark is easily sterilized.

Installation

pip install steganodf

Usage

From command line

steganodf encode -i iris.csv -o iris.w.csv -m hello -p password
steganodf decode -i iris.w.csv -p password

From Python

import steganodf 

 
df = pd.read_csv("https://gist.githubusercontent.com/netj/8836201/raw/6f9306ad21398ea43cba4f7d537619d0e07d5ae3/iris.csv")

# Hide your message 
new_df = steganodf.encode_pandas(df, "made by steganodf", password="secret")

# Extract your message 
message = steganodf.decode_pandas(df, password="secret")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steganodf-0.1.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

steganodf-0.1.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file steganodf-0.1.4.tar.gz.

File metadata

  • Download URL: steganodf-0.1.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.2.16-1-MANJARO

File hashes

Hashes for steganodf-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e981a7ff933793bf5005f3eef492e972110f5de79a2877c22711e56f2614289d
MD5 922cece184916cb1da10383206cdde5f
BLAKE2b-256 f307e76128ad9076960529a0bf6086f3b601671adc5553149afc336672662552

See more details on using hashes here.

File details

Details for the file steganodf-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: steganodf-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.2.16-1-MANJARO

File hashes

Hashes for steganodf-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f069f10aff23557369b30691c65c3f31d68ed39aa868e6e2cde639823045c80c
MD5 4a137b77029934bcd2dfb65b5d47dd53
BLAKE2b-256 884e11f87d452023418bf733c9aab4e2283cba98c341f88936b2fc20262ae6e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page