如何在android studio中隐藏图像中的图像 [英] How to hide image in image in android studio

查看:267
本文介绍了如何在android studio中隐藏图像中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi, I was looking for codes of steganography for a mobile application to help me hiding image in image using LSB algorithm can anyone help me?
the images are jpg images.
& do I have to convert the images to gray and then to binary to start work?





我尝试过的方法:





What I have tried:

I searched but I couldn't find any codes that help me in android studio
besides most of the codes I found was to hide text in an image

推荐答案

有很多关于各种语言(包括JAVA)的隐写术教程,并且有一些包GIT for this。



现在你说你能找到一些代码,但它只是隐藏图像中的文字。您应该意识到,在所有现实中,图像文件都是数据流,就像文本字符串只是一个字符流一样。将使用相同的操作原理,这将是一个更长时间运行的过程;唯一真正的规则是将较小的文件嵌入到较大的文件中。



现在关注的是两个文件都使用JPG。 JPG是一种有损格式,位很容易丢失。我建议使用PNG immage作为此
There are plenty of tutorials for steganography in various languages including JAVA, and there are packages over on GIT for this.

Now you have said you were able to find some code, but it was only to hide text within an image. You should realize that in all reality an image file is a stream of data just as a text string is just a stream of characters. The same principals of operation are going to be used it is just going to be a longer running process; only real rule is to embed a smaller file into the larger one.

Now a concern is going to be the use of JPG for both files. JPG is a lossy format and bits can get lossed quite easily. I would recommend using a PNG immage for the "container" portion of this


这篇关于如何在android studio中隐藏图像中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆