Compared with the traditional holographic technology, metasurface holography is a promising technology due to the large field angle and high spatial resolution. Thanks to the precise control of phase, amplitude, polarization and so on, metasurface holography provides a flexible platform for light modulation, optical encryption and so on. Besides, the process of image reconstruction by single pixel imaging is similar to a form of encoding and decoding, which is realized by calculating the correlation between a series of modulation patterns and their corresponding intensity signals. In this work, an optical encryption scheme is proposed based on spatial multiplexing metasurface, which depends on the combination of holographic technology and single pixel imaging technology. In the encryption scheme, the image transmitted by single pixel imaging based on metasurface is used as the addressing key of holography. Besides, illuminating different positions of the metasurface can generate different holographic reconstructed images, and there is 50% information overlapped between adjacent subâholograms. This work makes use of the spatial multiplexing property of metasurface, which can complete different functions, paving the way for the application in the field of optical imaging encryption and information security.