import base64
import string
import unittest


def decode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16decode(bstring, casefold=True)


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


def encode_base64(string):
    return base64.standard_b64encode(string)


def score(bstring):
    letters = string.ascii_letters + ' '
    count_letters = sum(chr(c) in letters for c in bstring)
    return count_letters / len(bstring)

0cbd81e11838f97097099c049be9c8e0a0257b9d
<mask token>


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


<mask token>

<mask token>


def decode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16decode(bstring, casefold=True)


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


<mask token>

<mask token>


def decode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16decode(bstring, casefold=True)


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


def encode_base64(string):
    return base64.standard_b64encode(string)


<mask token>

<mask token>


def decode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16decode(bstring, casefold=True)


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


def encode_base64(string):
    return base64.standard_b64encode(string)


def score(bstring):
    letters = string.ascii_letters + ' '
    count_letters = sum(chr(c) in letters for c in bstring)
    return count_letters / len(bstring)

import base64
import string
import unittest


def decode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16decode(bstring, casefold=True)


def encode_hex(bstring):
    if isinstance(bstring, str):
        bstring = bytes(bstring, encoding='ascii')
    return base64.b16encode(bstring)


def decode_base64(string):
    return base64.standard_b64decode(string)


def encode_base64(string):
    return base64.standard_b64encode(string)


def score(bstring):
    letters = string.ascii_letters + ' '
    count_letters = sum(chr(c) in letters for c in bstring)
    return count_letters / len(bstring)
