项目作者: LucasN-dev

项目描述 :
Hide a message in an image using EXIF GPS data.
高级语言: JavaScript
项目地址: git://github.com/LucasN-dev/EXIF-GPS-Steganography.git
创建时间: 2021-04-02T13:09:35Z
项目社区:https://github.com/LucasN-dev/EXIF-GPS-Steganography

开源协议:

下载


EXIF GPS Steganography

Quick project I decided to do, the goal is to hide a message within an image using the EXIF GPS data. You can test it out here.

How does it work?

Using EXIF, we can attach to an image its GPS location. The latitude and longitude are stored in DMS (Degrees Minutes Seconds) with their respective referential.

The referential is indicated by an ASCII character, ‘N’ for North, ‘S’ for South, ‘E’ for East, or ‘W’ for West. The actual coordinates are stored using 6 rational numbers, or 12 integers.

Example:

  • S; 32/1; 11/1; 32/3,
  • E; 31/1; 40/1; 11/7;

This tool allows the user to store a short message, using the rational numbers that determine the seconds of the coordinates.

The message is converted to decimal after being capitalized so that the decimal value of each character has a length of 2. It is then separated into 4 integers and these are inserted into the seconds’ fields.

The tool allows the user to encode or decode a message. This is not an encryption method per se, but rather a fun way to hide a message in plain sight.

Encoding process example:

  • Original message: GITHUB DEMO
  • Message encoded in decimals: 7173847285663268697779
  • Coordinates stored within the image: N; 28/1; 22/1; 71738/47285, E; 64/1; 42/1; 66326/8697779

Using this example, the coordinates will most likely be displayed in one of the following formats by an image viewer or dedicated tool:

  • 28.36708809465064, 64.70000211822914
  • N; 28; 22; 1.5171407423072856, E; 64; 42; 0.007625624886537126

Dependencies