eklem / otp-encryption-toy

Toy for kids to encrypt/decrypt messages with one time pads.
MIT License
0 stars 0 forks source link

Codebook for i.e. emojis #8

Closed eklem closed 2 years ago

eklem commented 2 years ago

Original use for this has been often used, strategic words. To be able to get more info into a short message. Has been consisting of control character (0) + 3 digit number.

For emojis, it could be good with a control character (0) + 4 digit number since you have almost 2000 UTF8 emojis by now.

Use the unicode number and pad it with zeros. The original smiley 1 will then be 00001. The first 0 is the codebook prefix.

eklem commented 2 years ago

All the emojis can be found here: https://unicode.org/emoji/charts-14.0/emoji-ordering.txt

First time:

Next time:

eklem commented 2 years ago

Done at https://github.com/eklem/otp-encryption-decryption-lib