heart-encrypt

1.1.1 • Public • Published

heart-encrypt

Encode ASCII messages with Emoji hearts or other characters

Usage

Default

Encrypt and decrypt

encrypt('hello', function(err, message) {
  console.log(message);
});
 
> 💛💘❤️ 💛💖💘 💛💘💖 💛💘💖 💛💘💟 
 
decrypt('💛💝💟 💛💘💟 💛💝💙 💛💘💖 💛💖💖 ', function(err, message) {
  console.log(message);
});
 
> "world"

Custom

You can use a custom set of 2-10 different chatacters by adding an options parameter to both functions.

In this release, the characters should be simple characters or emojis and not combined emojis (for example, national flags)

encrypt('less cool', function (err, message) {
  console.log('custom message: ' + message);
}, { characters: ['😀', '😎'] });

License

Open source, MIT license

Readme

Keywords

none

Package Sidebar

Install

npm i heart-encrypt

Weekly Downloads

1

Version

1.1.1

License

MIT

Last publish

Collaborators

  • mapmeld