Generates variable-length tokens for Golang web APIs