The public key is made of the modulus and the public ( or encryption ) exponent . The private key is made of the modulus and the private ( or decryption ) exponent which must be kept secret . The public key consists of the modulus n and the public ( or encryption ) exponent e. The private key consists of the private ( or decryption ) exponent d which must be kept secret .