Coder Social home page Coder Social logo

javasteganolibrary's Introduction

JavaSteganoLibrary

En_US

Java library that implements the steganographic algorithm F5

Usage: Get the library in here, or make a clone this repository and compile the source code.

Embeding a file in image

import stegano.f5.Embed;

(...)

File coverImage = new File("/Path/to/image.jpg"); /* supports BMP */
File file = new File("/Path/to/file.foo");  /* any file format */
File steganoImage = newFile("/Path/to/create/image.jpg");

String password = "Sup3r_5ecR3T_P4sSw0rd";

int quality = 80; /* get better quality beteween 70 and 80 */

Embed e = new Embed();

e.setImage(coverImage);
e.setFile(file);
e.setStegImage(steganoImage);
e.setPassword(password);

e.embed();

(...)

Extract file from image

import stegano.f5.Extract;

(...)

File steganoImage new File("/Path/to/stegano/image.jpg");
File file new File("/Path/to/create/file.foo");

String password = "Sup3r_5ecR3T_P4sSw0rd";

Extract e = new Extract();

e.setStegImage(steganoImage);
e.setFile(file);
e.setPassword(password);

e.extract();

(...)

Pt_BR

Biblioteca Java que implementa o algorítimo esteganográfico F5

Utilizando: Faça o download da biblioteca aqui, ou faça uma cópia desse repositório e compile a biblioteca.

Incorporando um arquivo em uma imagem

import stegano.f5.Embed;

(...)

File imagem_cobertura = new File("/Caminho/para/a/imagem.jpg"); //Também suporta o formato BMP
File arquivo = new File("/Caminho/para/o/arquivo.file"); // qualquer formato de arquivo
File imagem_estenografada = new File("/Caminho/para/onde/sera/criada/a/imagem.jpg") ;

String senha = "s3nh4_5up3secReT4";

int qualidade = 80; //entre 80 e 70 onde se tem melhores resultados

Embed e = new Embed();

e.setImage(imagem_cobertura);
e.setFile(arquivo);
e.setStegImage(imagem_estenografada);
e.setPassword(senha);

e.embed();

(...)

Extraindo um arquivo de uma imagem esteganografada.

import stegano.f5.Extract;

(...)

File imagem_estenografada = new File("/Caminho/da/imagem.jpg") ;
File arquivo = new File("/Caminho/onde/sera/criado/o/arquivo.file");
String senha = "s3nh4_5up3secReT4"; //Deve ser a mesma senha utilizada para imcorporação

Extract e = new Extract();

e.setImage(imagem_estenografada);
e.setFile(arquivo);
e.setPassword(password);

e.extract();

(...)

javasteganolibrary's People

Contributors

ricardoborgesjr avatar

Stargazers

Plams Li avatar  avatar Yossarian avatar

Watchers

 avatar Yossarian avatar

Forkers

rgwch

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.