import binascii


def encrypt(message: bytes, pad: bytes) -> bytes:
    """
    Performs the encryption between the message and pad.

    Arguments:
    message: bytes - the message to encrypt, raw bytes not in hex
    pad: bytes - the pad to encrypt with, hex form

    Returns: bytes - the encrypted message
    """
    
    # take the pad out of hex form
    pad = binascii.unhexlify(pad)

    # make sure the message and pad are the same length
    assert len(message) == len(pad)

    encrypted = []
    for m, p in zip(message, pad):
        # iterate through the message and pad taking the
        # exclusive or of each pair of bytes in the message and pad
        encrypted.append(m ^ p)

    # return the encrypted message in hex form
    return binascii.hexlify(bytes(encrypted))