def rsa_encrypt(data: int, e: int, n: int) -> int:
    """
    encrypt data with the rsa cryptosystem (rsa_fernet_encrypt is more secure and supports more data)

    :param data: the plaintext
    :param e: public key (e) of the other person
    :param n: public key (n) of the other person
    :return: the ciphertext
    """
    if data > n:
        raise OverflowError('')
    return pow(data, e, n)