A simple token generator helper to prevent csrf.