Diary ===== 2012-10-16 ---------- - 2012-10-16_0001 - 2012-10-16_0001_1 - 2012-10-16_0001_1_1 # Source ```python import hashlib import zlib s = u'abc' if s is not None: print hashlib.md5(zlib.compress(s, 9)).hexdigest() print u'done' ``` 2012-10-18 ---------- - 2012-10-18_0001