encode

fun encode(token: ProxyToken, secret: ByteArray): String

Encodes token into a compact string and signs it with secret.