A simple example of DES and RSA in Java that resolve this exercise:
1 Alice sends her public key to Bob. 2 Bob generate a DES session key. 3 Bob encrypts it with Alice’s public key. 4 Alice decrypts the DES key with her private key. 5 Alice sends a message to Bob with her session key 6 Bob decrypts the message with the session key.