Implementation of token generator and a generator for URLs including tokens