Presentation Layer, Layer 6

Ensures that data is in a usable format and is where data encryption occurs. See OSI model, Open Systems Interconnection model.