Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding:utf-8 -*-
- import hashlib
- from datetime import datetime
- now = datetime.now().isoformat()
- token = hashlib.md5(now).hexdigest()
- print now
- print token
- # 2015-04-17T12:14:03.475027
- # 34337588bda68948a7559959b952865c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement