This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64, binascii, hexdump, argparse, textwrap, uuid | |
def guid_to_string(binary_guid): | |
return str(uuid.UUID(bytes_le=binary_guid)).lower() | |
def b64_d(string): | |
return base64.b64decode(string + '=' * (-len(string) % 4)) | |
def b64_url_d(string): | |
return base64.urlsafe_b64decode(string + '=' * (-len(string) % 4)) |