

def __encode(value, alphabet=(string.ascii_letters + string.digits)):
    num = zlib.adler32(value.encode('utf-8'))
    if (num == 0):
        return alphabet[0]
    arr = []
    base = len(alphabet)
    while num:
        rem = (num % base)
        num = (num // base)
        arr.append(value[rem])
    arr.reverse()
    return ''.join(arr)

dataset/ETHPy150Open zynga/jasy/jasy/js/optimize/CryptPrivates.py __encode/VarMisuse@89/100 `alphabet`->`value`