With the development of information technology,data security has become increasingly sophisticated.To ensure data security,data encryption and decryption applications are becoming increasingly widespread.As a carrier of data storage,the importance of data security in Flash is self-evident.Due to the special storage structure of Flash,the default value of each hit after erasure is fixed at'1'.And some'0'will become'1'after encryption and be written into Flash.When reading Flash,the read data is sent to the decryption circuit for decryption.However,the decryption circuit cannot distinguish whether the received data'1'is the default value of Flash or the'1'generated after'0'encryption.For some applications,the physical meanings of these two types of'1'are different.In response to this characteristic,this article introduces a special encryption and decryption technique that can distinguish between these two types,and give a better support for applications.