A new optical encoding approach, the wavenumber–intensity joint surface enhanced Raman scattering (SERS) spectral encoding method, was demonstrated by using silver nanoparticles with a core–shell structure.