|
|
|
@ -189,14 +189,15 @@ def d2b64(d):
|
|
|
|
|
return d2
|
|
|
|
|
|
|
|
|
|
def b64enc(x):
|
|
|
|
|
if type(x) not in {str,bytes}: return x
|
|
|
|
|
if type(x)==str: x=x.encode()
|
|
|
|
|
if not isBase64(x): x=b64encode(x)
|
|
|
|
|
return x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def b64dec(x):
|
|
|
|
|
if isBase64(x): x=b64decode(x)
|
|
|
|
|
return x
|
|
|
|
|
def b64enc_s(x):
|
|
|
|
|
return b64enc(x).decode()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def hashish(binary_data):
|
|
|
|
|