added encryption and successfully decrypted incoming packets