SuiPian (碎片) - File disguise and restoration tool, hide files in plain sight
Project description
SuiPian (碎片)
File disguise and restoration tool - hide files in plain sight.
将任意文件拆散伪装成看似普通的文本文件,再用密码还原。
Features
- Hide: Embed any file (images, documents, etc.) inside a seemingly normal text file
- Reveal: Restore a hidden file from a morphed file using the password
- Validate: Check if a file is a valid morphed file
- Info: Get metadata about a morphed file
Requirements
- Python 3.10+
- lz4
- cryptography
Installation
pip install suipian
Or install from source:
pip install -e .
Quick Start
CLI
Hide a file:
suipian hide image.png readme.txt -o output.txt -p mypassword
Reveal a hidden file:
suipian reveal output.txt -o restored.png -p mypassword
Validate a morphed file:
suipian validate output.txt
Get info:
suipian info output.txt
Python API
from suipian import hide_file, reveal_file, validate_morph
result = hide_file(
source="image.png",
carrier="readme.txt",
output="output.txt",
password="secret"
)
result = reveal_file(
morphed="output.txt",
output="restored.png",
password="secret"
)
result = validate_morph(file="output.txt")
print(result.success)
print(result.data)
Agent Integration
from suipian.tools import TOOLS, dispatch
Development
pip install -e ".[dev]"
pytest tests/test_unified_api.py -v
License
GPL-3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
suipian-1.0.1.tar.gz
(23.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
suipian-1.0.1-py3-none-any.whl
(20.9 kB
view details)
File details
Details for the file suipian-1.0.1.tar.gz.
File metadata
- Download URL: suipian-1.0.1.tar.gz
- Upload date:
- Size: 23.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ba1607dbe4b657f0b4b01caa1c631468e1240b330e255ddbb995299cac7b35e
|
|
| MD5 |
f583acea59c92b4503dae4632f4f1ad5
|
|
| BLAKE2b-256 |
ca8cf28962a14a3dc1afa2736542fc46e7584df4e347eb391f17a9647ee76975
|
File details
Details for the file suipian-1.0.1-py3-none-any.whl.
File metadata
- Download URL: suipian-1.0.1-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
098a456bb005a09789fb2e44a12c890e6d552779d3900dcd074ee43cc475de11
|
|
| MD5 |
b7e40ddfec39ebb3e8fd727e43103a23
|
|
| BLAKE2b-256 |
22e703116d0de01c532313e682647e70119567e085a501c80bf2c0d9a986d5b8
|