Code Monkey home page Code Monkey logo

lsb-audio-steganography's Introduction

Overview

This project implements pseudorandom LSB (Least Significant Bit) audio steganography in Python, enabling secure and undetectable embedding of secret messages in audio files. By leveraging pseudorandom number generation for message embedding, it enhances the security and minimizes the detectability of the encoded data.

Features

  • Pseudorandom LSB Encoding: Secret messages are encoded into audio files with LSB modification at pseudorandom indices.
  • Secure Decoding: Messages are extracted using the same pseudorandom pattern as in encoding, requiring the original seed.
  • Enhanced Security: Seed-based pseudorandom sequences create unique encoding patterns.
  • Compatibility: Works with various audio formats supported by Python's wave module.

Components

  • LSBAudioSteganography: Base class for audio processing and bit manipulation.
  • LSBAudioEncoder: Subclass for message encoding using pseudorandom LSB.
  • LSBAudioDecoder: Subclass for message decoding, matching the encoding pattern.

Usage

from lsb_encoder import LSBAudioEncoder
from lsb_decoder import LSBAudioDecoder

secret_message = "I would tell you a UDP joke, but you might not get it."
audio_filepath = "example_audio.wav"
output_audio_filepath = "embedded_audio.wav"

# For Encoding
encoder = LSBAudioEncoder(audio_filepath)
encoder.encode(secret_message, 42, output_audio_filepath)

# For Decoding
decoder = LSBAudioDecoder(output_audio_filepath)
decoded_message = decoder.decode(42, len(secret_message))
print("Decoded message:", decoded_message)

Dependencies

This project relies on the following external libraries:

  • wave - Standard Python library for reading and writing WAV files.
  • numpy (version 1.19 or later) - Used for mathematical operations on audio data.

Acknowledgement

LSB implementation was inspired from article.

lsb-audio-steganography's People

Contributors

ibrahim-benkhedda avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.