Code examples

These are some code examples, meant to illustrate the various uses of string phone.


The simple example shows how to exchange messages securely using a pre-shared key. Signature verification is disabled, since this example assumes that any participant that knows the pre-shared key can be trusted completely.

Simple example.


The MQTT example uses an MQTT server for discovery and messaging.

MQTT example.