scratchpad code that stores encrypted message is working