import random


def make_secret(
    size=64,
    allowed_chars="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-./:;<=>?@[]^_`{|}~",
):
    """make a secret key"""
    try:
        choice = random.SystemRandom().choice
    except:
        choice = random.choice
    return "".join(choice(allowed_chars) for _ in range(size))