Data hiding
A design principle that keeps a component's internal data out of reach of other components and processes at other layers, allowing access only through defined interfaces.
Data hiding is the design principle that data belonging to one component, layer or process is not visible or reachable from outside it except through the interfaces that component chooses to offer. One process is prevented from reading another’s memory, a user-mode program is prevented from inspecting kernel data structures, and an object’s internal fields are reached only through its methods. The Orange Book (TCSEC) required a class B3 trusted computing base to make significant use of layering, abstraction and data hiding, and the three are still taught together.
They are easily blurred. Abstraction decides what a caller is shown; data hiding ensures that what is not shown cannot be reached; layering arranges components so that each uses only the services of the layer beneath it. In an operating system, process isolation and protection rings enforce data hiding with hardware support, and in software object-oriented programming provides it through access modifiers. The phrase has a second, unrelated use: concealing data from inspection or from investigators, for example in slack space or through steganography.
Exam relevance: questions in this area tend to present data hiding as one of the security capabilities of an information system, alongside layering and abstraction. Candidates are expected to recognise it where one layer’s data is protected from another, and to keep it apart from anti-forensic hiding.