如何在RGB层中隐藏2^12二进制位

发布于 2024-10-09 13:20:06 字数 130 浏览 12 评论 0原文

我想将 2^12 二进制位隐藏到 RGB 层中。例如 000011010000 这个值我想隐藏在 RGB 层中。 2^12位必须分为3层,例如0000隐藏在R层中,1101隐藏在G层中,0000隐藏在B层中。有谁知道如何在java中做到这一点..

i want to hide 2^12 binary bit into a RGB layer. Example 000011010000 this value i want to hide in RGB layer. the 2^12 bit must devide into 3 layer like 0000 hide in R layer 1101 in G layer and 0000 in B layer. anyone know how to do this in java..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

终遇你 2024-10-16 13:20:06

您想要做的事情的术语是“数字隐写术”,特别是数字图像隐写术。搜索隐写术和 java,您会发现几个示例,包括如下内容: http://www.stratos.me/2008/04/steganography-and-bitmap-files-for-hardcores-or-masochists/

The term for what you're trying to do is "digital steganography", specifically digital image steganography. Search for steganography and java and you'll find several examples, including stuff like this: http://www.stratos.me/2008/04/steganography-and-bitmap-files-for-hardcores-or-masochists/

最丧也最甜 2024-10-16 13:20:06

我猜您有一个非压缩形式的原始图像(例如位图、PNG),并且您想要创建一个修改后的图像,该图像可以与原始图像结合使用以提取隐藏数据。如果是这样,我认为将 12 位数据隐藏到一个像素中可能会太引人注目。假设每个像素占用 3n 字节,也许每个像素 3 位数据效果最好。然后,您可以翻转最低有效位,当且仅当您隐藏的位是 1 时。我浏览了 @CaptainAwesomePants 的参考文献,它似乎与此建议相同,但具有更多技术细节和示例。 (我给了他/她的答案+1。)

I'm guessing you have an original image in non-compressed form (e.g., bitmap, PNG) and you want to create a modified image that can be used in conjunction with the original image to extract the hidden data. If so, I think hiding 12 bits of data into one pixel would probably be too noticeable. Perhaps three bits of data per pixel would work best, assuming each pixel takes up 3n bytes. Then you could flip the least significant bit iff the bit you are hiding is a 1. I glanced at @CaptainAwesomePants's reference, and it seems along the same lines as this suggestion, but with more technical detail and examples. (I gave his/her answer +1.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文