Abstract:NDN security mechanism lies in the information itself, and the effective signature and encryption must be given to the data transmitted in NDN , otherwise the attacker can get data or send them at will. In view of this security problem, a lightweight encryption algorithm is designed. The meaning and purpose of the each step of the algorithm and security under various attack modes are analyzed in detail. The algorithm is optimized to improve its efficiency and is embedded in ndnSIM for simulation. The verified data are transmitted in encrypted way from the publisher and the identity of the publisher can be verified correctly after receiving the data, and the change of plaintext and the verification data can be correctly solved. The effect of the algorithm on confidentiality,authentication , integrity and efficiency are verified.