@yaas/bacon-cipher

2.2.0 • Public • Published

Bacon Cipher

This is a baconian cipher based off of geocaching toolbox. Currently, it is using the V2 method, as that will create unique 'characters', whereas in the standard version I and J would share identical patterns, as would U and V

const { encode, decode, version } = require('@yaas/bacon-cipher');

const text = 'This is test text!';
const encoded = encode(text);
const decoded = decode(encoded /*, true */);

console.log(encoded);
// => BAABAAABBBABAAABAAAB ABAAABAAAB BAABAAABAABAAABBAABA BAABAAABAABABABBAABA!

console.log(decoded);
// => This Is Test Text!

console.log(decode(encoded, false));
// => THIS IS TEST TEXT!


console.log(version);
// => SemVer Version

With the decode function, there is an option to not use title case. This must be set explicitly and will return all uppercase letters.

LICENSE

MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i @yaas/bacon-cipher

Weekly Downloads

0

Version

2.2.0

License

MIT

Unpacked Size

4.22 kB

Total Files

4

Last publish

Collaborators

  • yaas-dev