One example described herein includes a system that can perform an inflight encryption of data from a server to a network attached storage (NAS) device. The system can include a first network adapter card that can receive data from the server via a network file system (NFS) protocol. The first network adapter card can determine that the data is unencrypted based at least in part on receiving the data via an NFS port of the server. The first network adapter card can encrypt the data based at least in part on the data being received via the NFS port. The system can transmit the encrypted data to the NAS device via a second network adapter card, where the second network adapter card is configured to decrypt the encrypted data.