Babel is an open source chat widget and API built with the PubNub Global Realtime Network. Babel let's you send Self-Destructing Messages, and also helps facilitate public key exchange.
Add Encrypted, Self-Destructing messaging in just 2 steps.
Babel uses 1024-bit RSA encryption to encrypt the messages it sends. However, if you would like, you could get these keys and use them for other purposes.
listUsers()
Returns an object containing users and their respective keys.
myKey()
Returns your Cryptico RSAkey.
sendMessage(recipient, message, ttl)
Sends message
to recipient
. After ttl
seconds the message will self-destruct.
returnMessages()
Returns all messages that haven't self-destructed yet.
onRecieveMessage(callback)
callback
will be called whenever you receive a message.
listUsers()
Returns a list of all users currently connected to Babel.
onPresence(callback)
callback
will be called whenever a user joins or leaves.
For a more detailed overview of the Babel API, check out the README on GitHub.