你怎么能隐藏jpg或gif照片中的信息? [英] How can you hide information inside a jpg or gif photo?

查看:268
本文介绍了你怎么能隐藏jpg或gif照片中的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不破坏图像的情况下在jpg或gif等照片文件中写入一些信息?当然没有在照片上显示它,因为整个想法是在任何人未检测到的照片文件中发送信息(在某种程度上提供安全/隐私)!

How can I write some information inside a photo file like jpg or gif without destroying the image? and of course without showing it on the photo since the whole idea is to send information in the file of photo undetected by anyone (to provide security/privacy to some extent)!

推荐答案

您可以在图像元数据中存储一些信息。事实上,这就是人类数码相机标记他们拍摄的照片(相机型号,日期和时间,GPS坐标等)。

You can store some information in image metadata. In fact that's how man digital cameras 'tag' the photos their making (camera model, date and time, GPS coords etc.).

此数据格式称为 EXIF (可交换图像文件格式)。有很多例子如何在编程语言中使用它。 这是 Java中的示例。

This data format is called EXIF (Exchangeable Image File Format). There are a lot of examples how to use it in programming languages. Here's the example in Java.

如果你想阻止用户阅读这些数据,你可以用某种方式对它们进行加密,但是它们总能将它从你的图片中删除(例如在Photoshop中打开并使用另存为)。

If you want to prevent users from reading this data you can encrypt them somehow, but they will always be able to remove it from your picture (by opening in Photoshop and using Save As for example).

这篇关于你怎么能隐藏jpg或gif照片中的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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