diff options
-rwxr-xr-x | do.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ import os import pwd import subprocess from subprocess import PIPE -from base64 import b64encode +import hashlib import os.path as path import email from email.policy import default @@ -276,7 +276,7 @@ for match in tag_iter: outstr += page1[pos:match.start()] pos = match.end() - uid = b64encode((url + frag).encode('UTF-8')) + uid = hashlib.md5((url + frag).encode('UTF-8')).hexdigest() title = comment or url or frag |