Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alcalyn/bubblizator
Send secret bubble messages with Bubblizator, a symmetric-key algorithm which creates a bubble ciphertext.
https://github.com/alcalyn/bubblizator
Last synced: 4 days ago
JSON representation
Send secret bubble messages with Bubblizator, a symmetric-key algorithm which creates a bubble ciphertext.
- Host: GitHub
- URL: https://github.com/alcalyn/bubblizator
- Owner: alcalyn
- License: mit
- Created: 2016-11-24T21:20:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-22T20:17:08.000Z (over 7 years ago)
- Last Synced: 2024-10-11T12:06:09.141Z (28 days ago)
- Language: JavaScript
- Homepage: https://alcalyn.github.io/bubblizator/demo/
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Bubblizator
===========Bubblizator is a symmetric-key algorithm which creates a bubble ciphertext.
Just see an example:
``` js
var bubblizator = new Bubblizator();bubblizator.encode('This is a secret message !', 'my-secret');
/* Output:
80°08°8OO000.:O0.°0.0:@8O:°@0:OO@°8
::8o8808@o@°:OOoO@:oOo°O°o:o°:o°@0°
*/bubblizator.decode('80°08°8OO000.:O0.°0.0:@8O:°@0:OO@°8::8o8808@o@°:OOoO@:oOo°O°o:o°:o°@0°', 'my-secret');
/* Output:
This is a secret message !
*/
```## Installation
Using Bower:
``` bash
bower install bubblizator
```Then add in your template:
``` html
```
## Usage
### Default usage
``` js
var bubblizator = new Bubblizator();bubblizator.encode('This is a secret message !', 'my-secret');
bubblizator.decode('80°08°8OO000.:O0.°0.0:@8O:°@0:OO@°8::8o8808@o@°:OOoO@:oOo°O°o:o°:o°@0°', 'my-secret');
```Using different key between encoding and decoding won't work.
### Using another charset
You can use another charset than bubbles.
A charset is 8 characters used for ciphertext.
It also supports an UTF-8 charset.Just pass a `charset` option to bubblizator (string of 8 chars):
``` js
var bubblizator = new Bubblizator({
charset: '♩♪♫♬♭♮♯°' // a Solfeggizator
});bubblizator.encode('You touch my tralala', 'mydingdingdong');
/* Output:
♬♩♬♪♬♭♭°°♮♬♮°♫♭♪♭♭♫°°°♪°♭°♯♪♫♫♩♭♮°♩♮♫♮♯♪♯°♩♭°♭♮♮♩♫°♩♭♩
*/
```## License
This library is under [MIT License](LICENSE).