例如,我需要隐藏图片中的消息
pixels = []
File.open("file.jpg","rb").each_line{|line| pixels.push line}
在像素数组的第一个元素中,我们有字符串=>“ \ a \ a \ b \ a \ x06 \ n”
展示lsb我们可以使用
像素[0] .unpack('b *')
=> [“ 111000001110000000010000111000000110000001010000”]
如果我们想看看它是什么,我们使用
像素[0] .unpack('C *')
=> [7、7、8、7、6、10]
我该如何组织最低有效位的读\写秘密消息机制?
我已经找到了这个问题的答案,并在此处http://blog.rubyruby.ru/blog/2014/03/14/bitmap_images_and_lsb_hiding/上写了一篇文章
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句