Skip to content

alecbush/emoji-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EmojiCipher-JS

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.

Browser Requirements

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.

Install

Include Script - HTML

<script src="emojiCipher.js" type="text/javascript"></script>

Include Module - Node.js

const EmojiCipher = require('./emojiCipher')

Usage

Declare new EmojiCipher w/ Key

const emoji = new EmojiCipher('🤫shhh');

Encode

const cipherText = emoji.encode('Hello, World! 😄');

// 🐔📘🐅🤞🧚💅🔡🦓📼🔲👵🤶🤦👣🤗🐪🐙🐩

Decode

const plainText = emoji.decode(cipherText);

// Hello, World! 😄

About

An emoji-based cipher written in less than 100 lines of JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published