In this paper, a new method of 3D data information encryption with virtual holography is proposed. The data information is encoded in the form of 3-D data cubes. A cube can be described as an assembly of slices which are parallel planes along the coordinates at an interval of d. The dot on the slices of the 3-D data cube represents a bit, and the bright one means "1", while the dark one means "0". The hologram of the 3-D cube is generated in computer with virtual holography, and the hologram can be transformed into a secondary hologram with virtual holography technique again. Thus the 3-D data cube can be encrypted in the form of the secondary hologram, in which the parameters are used as the keys, such as the wavelength of light, the propagation distance of wave, the geometrical parameters of the data cube and so on. Only all of the parameters keys are provided correctly, the data information can be retrieved entirely. Numerical experiments are performed to illustrate the ability to encrypt the 3-D data information with virtual holograph technique. The computer simulation results show, that the data information can obtain higher security and certain robustness with this method.