Fixes #7, updates to #5, Implements the crypt on incomming messages.