def decipher_kid_rsa(msg, key):
 (n, d) = key
 return ((msg * d) % n)

def decipher_kid_rsa ( msg , key ) : ( n , d ) = key return ( ( msg * d ) % n )
here msg is the plaintext and key is the private key .