There is a newer version of the record available.

Published January 24, 2025 | Version v1
Software Open

Artifact for "SparSamp: Efficient Provably Secure Steganography Based on Sparse Sampling"

  • 1. ROR icon Hefei University of Technology

Description

SparSamp Artifact Description

This repository contains the Artifact for the paper "SparSamp: Efficient Provably Secure Steganography Based on Sparse Sampling". SparSamp introduces a novel steganography scheme that leverages sparse sampling techniques to achieve efficient and provably secure information hiding.

Overview

The Artifact provides a Python implementation for encoding and decoding messages using the SparSamp method within a neural network model. The core functionalities are encapsulated in the `encode_spar` and `decode_spar` functions, which utilize probabilistic token generation based on a given context.

Key Features

  • Provable Security: The scheme is backed by rigorous theoretical analysis, offering security proofs.
  • Efficiency: SparSamp significantly reduces computational overhead.
  • Practicality: Designed for real-world steganography applications.

Main Functions

  1. Encoding: The `encode_spar` function encodes a message into the generated token.
  2. Decoding: The `decode_spar` function decodes the message from the generated token.

Usage

The Artifact includes the necessary code to reproduce the experiments presented in the paper. Users can run `test_sparsamp()` in `main.py` as an example, ensuring a pretrained language model and message bits file are prepared beforehand.

Requirements

- Python 3.8
- PyTorch 2.2.2
- Transformers 4.41.2
- SciPy
- Additional dependencies may be required based on your environment.

Notes

- Ensure the model and context are properly set up before using the encoding and decoding functions.
- Adjust parameters such as `block_size` and `top_p` according to specific requirements.
- The code uses random sampling; results may vary across runs if not controlled with `random_seed`.

This description provides an overview of the Artifact's purpose, features, and usage instructions. If you need further details or modifications, feel free to ask!

Files

message_bits.txt

Files (18.4 kB)

Name Size Download all
md5:8ea64525c643d7adadcd1ebfb85d6f49
6.3 kB Download
md5:a6d50a401b2b3c831c5b3ceb8a2b4095
1.8 kB Preview Download
md5:fa0879788db36148cb460dd4851aaee9
3.0 kB Preview Download
md5:6f654a3490a6551836d361b5ff10c85c
5.0 kB Download
md5:8bbf932398aa44b5c0c2b69865c04a3e
2.3 kB Download

Additional details

Software

Programming language
Python