Git Product home page Git Product logo

hideimage's Introduction

图片隐写,将要隐藏的文字写入图片中,理论上最大可支持几十M文本。

原理比较简单,将输入的文本转为二进制字符串,然后和图片的RGB像素奇偶对应。 比如: 图片前三个像素RGB的值为(222,111,23),(222,10,23)(1,58,40),规则为1对奇0对偶,则这三个像素对应存储的二进制为 011001100。

现在已知一个二进制串,只需要对图片像素进行微调,即可记录下这串二进制字符串,这个像素微调对人眼来说是无法区分的。 提取文本则是进行一个反向运算。

更多细节可参阅源码。

经过处理的图片和原图在肉眼上几乎没有区别,并且在体积上不会造成明显膨胀。 (处理后的体积可能略微膨胀,甚至会变小,取决于原图色彩的复杂度)

GUI运行方式:

java -jar  -Dfile.encoding=UTF-8  hide.jar

命令行运行方式:

 java -cp  target/hide.jar  -Dfile.encoding=UTF-8 tony.ImageHide

APP截图:

APP截图

测试原图:

原图

测试处理后图片:

处理后图片

隐藏文字:组织上已经决定了,今天的垃圾都归你

Todo:GUI版本在某些场景下提取异常的BUG

hideimage's People

Contributors

iminto avatar

Watchers

James Cloos 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.