encode

fun encode(unencoded: String): SignedPayload
fun encode(unencoded: ByteArray): SignedPayload