shannonturner / text-to-bitmap

Encodes your secret message or file as an image
http://shannonturner.github.io/text-to-bitmap/
MIT License
8 stars 0 forks source link

Unicode Support #1

Closed shannonturner closed 11 years ago

shannonturner commented 11 years ago

Adding support beyond the ASCII character set would enable Text to Bitmap to be used in multiple languages as well as provide better security for all encoded messages. Currently, one ASCII value (0-255) is mapped to one R, G, or B value (0-255). Extending support to Unicode means that to properly decode values, more than one value will be needed.

shannonturner commented 11 years ago

To provide reliable Unicode support especially into the higher character values, five total RGB values could be used for each character. Each unicode code point (example: u'\ua000' or character # 40960 would have one random number between 1 and (255 or n-1) subtracted from the original.

Example: 40960 - 211 = 40749

From there, the remaining value could be split into four factors.

40749 could be split into (1 and 47) and (17 and 51)

Those five values could be used to reconstitute the original value, 40960.