Skip to main content

Functions to add steganographic message to a dataframe with row permutation

Project description

Steganodf

Steganodf is a tool to hide a secret message in a pandas dataframe by swapping lines. It works with permutation of block of 6 lines (720 combinaisons) to store 1 byte.

The dataframe is first sorted by the computed hash of each line. You can also use HMAC if you give a password. This prevents the attacker from finding the secret message. Indexes of each block of 6 lines are used as the source of permutation. A byte is then encoded as the n-th permutation.

Installation

pip install steganodf

Usage

import steganodf 

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

# Encode a message
new_df = steganodf.encode_pandas(df, "made by steganodf")

# Decode a message 
message = steganodf.decode_pandas(df)

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.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

steganodf-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: steganodf-0.1.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 5a3e96cec059d61afd6a52ad69ff0fcf878449a0f3ceda5402f3ecb2b85e86e0
MD5 1b3a26d4079df07320404ea341cb8f22
BLAKE2b-256 ff9a58b1f716b0a315f8b6311462bb18eee12ddf0820a10c19090bd86c290c63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: steganodf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a769f578490463b1e0f246086bb5b8914ab754f36735e1f751bbb5409374a00d
MD5 9eb3617e1e6950ce52a5ff7dbe72a0d1
BLAKE2b-256 f97499ee4b6ca82ff5cb86ad8ff6961f7568bed2bc88ebdc6d6d1723521a3de2

See more details on using hashes here.

Supported by

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