sha1 based token generator