Companion

object Companion

Functions

Link copied to clipboard
fun canonicalize(token: String): String

Returns a token semantically equal to token but using only characters from the Crockford Base32 alphabet. This maps visually similar characters like o to the corresponding encoding character like 0. Spaces are omitted.

Properties

Link copied to clipboard
const val CANONICALIZE_LENGTH_MAX: Int = 25
Link copied to clipboard
const val CANONICALIZE_LENGTH_MIN: Int = 4