[Updated] Encryption and packet validation