An emoji-based cipher written in less than 100 lines of JavaScript.
DISCLAIMER: this was written for fun and personal use. This is NOT intended to be a secure form of text encryption.
TextEncoder and TextDecoder support.
Browser | Supported Version |
---|---|
Chrome | 38 |
Edge | ≤79 |
Firefox | 19 |
IE | No Support |
Opera | 25 |
Safari | 10.1 |
View full compatibility for TextEncoder and TextDecoder.
Polyfill is available here.
<script src="emojiCipher.js" type="text/javascript"></script>
const EmojiCipher = require('./emojiCipher')
const emoji = new EmojiCipher('🤫shhh');
const cipherText = emoji.encode('Hello, World! 😄');
// 🐔📘🐅🤞🧚💅🔡🦓📼🔲👵🤶🤦👣🤗🐪🐙🐩
const plainText = emoji.decode(cipherText);
// Hello, World! 😄