import string
import random


def create_passwd(length=24) -> bytes:
    """
    Create a password that is (length) long using the cryptographically
    secure system RNG.
    Arguments:
        length: Number of desired characters, Interger. Default 24.
    Returns:
        passwd: (Length) byte string of letters, digits, and punctuation
    """
    alpha = string.ascii_letters + string.digits + string.punctuation
    passwd = "".join(
        [random.SystemRandom().choice(alpha) for i in range(length)]
    )
    return str.encode(passwd)