A simple token generator to prevent csrf.