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-the 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.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for steganodf-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6097005d24286111b520b03c5f601cd2f56372af2ced3bf0491c0d6efe585168 |
|
MD5 | cc71c7d63c500eb511c7a3445ea39e38 |
|
BLAKE2b-256 | 10b477de33e4de498a64d4b83290ba6b1fdf0bd0d979beab1a0c6f5f5f65b953 |