from typing import Tuple


def encrypt(keypair: Tuple[int, int], to_encrypt: str) -> list:
    """Encrypting the message with private key

    :param keypair: private key
    :param to_encrypt: message to encrypt
    :return: the encrypted message as a list of numbers
    """
    pk, n = keypair

    # encrypting with nb = c^pk % n
    return [pow(ord(c), pk, n) for c in to_encrypt]