Fixed up the message format, dealt with type errors from json.  Attempted to encrypt the hook string