authlib.py: encode for hashing