Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dridk/steganodf
a tool to hide a secret message in a tabular file like CSV file
https://github.com/dridk/steganodf
csv python steganography-tools
Last synced: about 1 month ago
JSON representation
a tool to hide a secret message in a tabular file like CSV file
- Host: GitHub
- URL: https://github.com/dridk/steganodf
- Owner: dridk
- Created: 2023-05-29T22:46:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-29T01:11:45.000Z (about 1 year ago)
- Last Synced: 2024-05-01T21:19:20.732Z (8 months ago)
- Topics: csv, python, steganography-tools
- Language: Python
- Homepage:
- Size: 74.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bashsteganodf encode -i iris.csv -o iris.w.csv -m hello -p password
steganodf decode -i iris.w.csv -p password```
## From Python
```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")```