command line
install scrabamble globally
$ sudo npm install scrabamble -g
generate a 25 entry pad into book1
$ bamble prep -n 25 --book book1
import the book1 pad
$ cat books/book1 | bamble import
generate a message from that pad
$ echo 'hello world' | bamble say -b book1 > filename.bamble
read a message from that pad
$ cat filename.bambled | bamble read -b book1
there are more options described in the help section of the app and each of its subcommands
$ bamble -h
$ bamlble say -h
$ bamlble read -h
and so on
api
in broad strokes...
install scrabamble locally
$ npm install scrabamble
$ var Key = require('scrabamble/key')
$ var newKey = new Key();
$ var secret = newKey.secret; // this is what you would give to someone so they could read your message
$ var message = Key.sign('this is a message') // this will output a message
$ var key2 = new Key(secret)
$ key2.read(message) //=> returns 'this is a message'