Coder Social home page Coder Social logo

visible-hidden-messages's Introduction

Visible Hidden Messages

Hide data invisibly. Uses zero width unicode characters to format data into binary which piggyback's onto a visible message.

Live demo

Found here.

Usage

Put your visible component in the first box, then your hidden message in the second, hit encode and copy your final message from the third (or click copy). To decode, hit clear, paste your message in the third box and hit decode.

How it works

Unicode has lots of characters for visual communication. English characters as seen here, Chinese characters, emojis, playing cards... There are also semantic only characters such as the right to left character used in cases such as displaying Arabic which reads from the right. Two of these semantic characters are the "Zero width space" which is used to signify a good place to split text to a new line. E.g population. A new line will be placed there with a dash to continue the word over the line. Another character is the "Zero width joiner" which does the reverse. I use these characters for the fact that they're zero width, i.e invisible. U+200B and U+200D are then used to represent binary (0 and 1) to store data.

Uses

Nothing practicle, but that's the point of a demo. I've thought of two use cases so far:

  • Display sensitive infomation with the user's IP address encoded in the message so if they were to copy and paste the information and leak it, they can be traced back.
  • The Australian government forces you to implement a backdoor and you message your boss: "I love the Australian government!" and encoded in the message is "I'm under duress, please save me"

Encoding files - Advanced

Uses common UNIX utilities to convert files to hex and back again.

  • Do a hexdump of your file, remove new lines and copy it to the clipboard:
  • xxd -p inFile | tr -d '\n' | xclip -selection c
  • Encode it, send.
  • Recieve, decode, copy message to clipboard.
  • Use the data from your clipboard to reassemble the file:
  • xclip -selection c -o | xxd -r -p > outFile

Limitations

  • Some platforms may trim the data
  • Messages that are too long may cause you to go over the max message length of some platforms

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.