Giter Site home page Giter Site logo

hnjm / steganography-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from papyruscompendium/steganography-library

0.0 2.0 0.0 36 KB

A C# library allowing anyone to consume my own implementation of steganography, using a LSB (Least Significant Bit) method.

License: MIT License

C# 100.00%

steganography-library's Introduction

Steganography

Github All Releases Github Issues Github Stars Github License

This is my own implementation of steganography, using a LSB (Least Significant Bit) method.
The way this works is by taking the LSB for every byte in a pixel (There are four in this case ARGB)
and changing the LSB to one bit of the data that you are trying to store. For example if I have
one byte of data I would like to store, I could store it in two pixels. I can store 4 bits
in one pixel without modifying the image enough that it is visible to the naked eye. In this
implementation I am only storing string data, but this can be made to store anything from files
to other images completely, like QR codes.

How do I use this?

This version of my implementation is built for developer advantage. It is a consumable code library giving developers ease
of access to writing their own steganography tools in C#. Simply import this DLL to your code base and you are ready to go!

using Steganography_Library;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Steganography
{
    class Program
    {
        static void Main(string[] args)
        {
            //Must be SAVED as a png, can be loaded FROM any format!
            SteganographicImage stegoImage = new SteganographicImage(new Bitmap(Image.FromFile("Image.png")));
            stegoImage.EncodeImage(Encoding.UTF8.GetBytes("Secret Message")).Save("NewImage.png");

            //Decoding, load from png
            stegoImage = new SteganographicImage(new Bitmap(Image.FromFile("NewImage.png")));
            Console.WriteLine(stegoImage.DecodeImage());
        }
    }
}

Bugs and issues

If you encounter and bugs or issues, feel free to open an issue on GitHub. I will address these issues as soon as I can.

steganography-library's People

Contributors

papyruscompendium avatar

Watchers

 avatar  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.