This version allows a user to decrypt an already encrypted message. Take a look at the comments in the code to see what has changed.